diff options
author | Chanho Park <chanho61.park@samsung.com> | 2014-12-11 18:55:56 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-12-11 18:55:56 +0900 |
commit | 08c1e93fa36a49f49325a07fe91ff92c964c2b6c (patch) | |
tree | 7a7053ceb8874b28ec4b868d4c49b500008a102e /boost/fusion/view/filter_view/filter_view.hpp | |
parent | bb4dd8289b351fae6b55e303f189127a394a1edd (diff) | |
download | boost-upstream/1.57.0.tar.gz boost-upstream/1.57.0.tar.bz2 boost-upstream/1.57.0.zip |
Imported Upstream version 1.57.0upstream/1.57.0
Diffstat (limited to 'boost/fusion/view/filter_view/filter_view.hpp')
-rw-r--r-- | boost/fusion/view/filter_view/filter_view.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/boost/fusion/view/filter_view/filter_view.hpp b/boost/fusion/view/filter_view/filter_view.hpp index 6b6ad4b718..dd710fabd1 100644 --- a/boost/fusion/view/filter_view/filter_view.hpp +++ b/boost/fusion/view/filter_view/filter_view.hpp @@ -7,6 +7,7 @@ #if !defined(FUSION_SEQUENCE_FILTER_VIEW_HPP) #define FUSION_SEQUENCE_FILTER_VIEW_HPP +#include <boost/fusion/support/config.hpp> #include <boost/fusion/support/detail/access.hpp> #include <boost/fusion/support/sequence_base.hpp> #include <boost/fusion/support/is_view.hpp> @@ -45,11 +46,14 @@ namespace boost { namespace fusion typedef typename result_of::end<Sequence>::type last_type; typedef Pred pred_type; + BOOST_FUSION_GPU_ENABLED filter_view(Sequence& in_seq) : seq(in_seq) {} + BOOST_FUSION_GPU_ENABLED first_type first() const { return fusion::begin(seq); } + BOOST_FUSION_GPU_ENABLED last_type last() const { return fusion::end(seq); } typename mpl::if_<traits::is_view<Sequence>, Sequence, Sequence&>::type seq; |