Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/fusion/sequence/intrinsic/front.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | 5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
6 ==============================================================================*/ | 6 ==============================================================================*/ |
7 #if !defined(FUSION_FRONT_09162005_0343) | 7 #if !defined(FUSION_FRONT_09162005_0343) |
8 #define FUSION_FRONT_09162005_0343 | 8 #define FUSION_FRONT_09162005_0343 |
9 | 9 |
10 #include <boost/fusion/support/config.hpp> | |
10 #include <boost/fusion/sequence/intrinsic_fwd.hpp> | 11 #include <boost/fusion/sequence/intrinsic_fwd.hpp> |
11 #include <boost/fusion/sequence/intrinsic/begin.hpp> | 12 #include <boost/fusion/sequence/intrinsic/begin.hpp> |
12 #include <boost/fusion/iterator/deref.hpp> | 13 #include <boost/fusion/iterator/deref.hpp> |
13 #include <boost/mpl/bool.hpp> | 14 #include <boost/mpl/bool.hpp> |
14 | 15 |
23 : result_of::deref<typename result_of::begin<Sequence>::type> | 24 : result_of::deref<typename result_of::begin<Sequence>::type> |
24 {}; | 25 {}; |
25 } | 26 } |
26 | 27 |
27 template <typename Sequence> | 28 template <typename Sequence> |
29 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
28 inline typename result_of::front<Sequence>::type | 30 inline typename result_of::front<Sequence>::type |
29 front(Sequence& seq) | 31 front(Sequence& seq) |
30 { | 32 { |
31 return *fusion::begin(seq); | 33 return *fusion::begin(seq); |
32 } | 34 } |
33 | 35 |
34 template <typename Sequence> | 36 template <typename Sequence> |
37 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
35 inline typename result_of::front<Sequence const>::type | 38 inline typename result_of::front<Sequence const>::type |
36 front(Sequence const& seq) | 39 front(Sequence const& seq) |
37 { | 40 { |
38 return *fusion::begin(seq); | 41 return *fusion::begin(seq); |
39 } | 42 } |