Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/fusion/sequence/intrinsic/back.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_BACK_09162005_0350) | 7 #if !defined(FUSION_BACK_09162005_0350) |
8 #define FUSION_BACK_09162005_0350 | 8 #define FUSION_BACK_09162005_0350 |
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/end.hpp> | 12 #include <boost/fusion/sequence/intrinsic/end.hpp> |
12 #include <boost/fusion/iterator/prior.hpp> | 13 #include <boost/fusion/iterator/prior.hpp> |
13 #include <boost/fusion/iterator/deref.hpp> | 14 #include <boost/fusion/iterator/deref.hpp> |
14 #include <boost/mpl/bool.hpp> | 15 #include <boost/mpl/bool.hpp> |
24 : result_of::deref<typename result_of::prior<typename result_of::end<Sequence>::type>::type> | 25 : result_of::deref<typename result_of::prior<typename result_of::end<Sequence>::type>::type> |
25 {}; | 26 {}; |
26 } | 27 } |
27 | 28 |
28 template <typename Sequence> | 29 template <typename Sequence> |
30 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
29 inline typename result_of::back<Sequence>::type | 31 inline typename result_of::back<Sequence>::type |
30 back(Sequence& seq) | 32 back(Sequence& seq) |
31 { | 33 { |
32 return *fusion::prior(fusion::end(seq)); | 34 return *fusion::prior(fusion::end(seq)); |
33 } | 35 } |
34 | 36 |
35 template <typename Sequence> | 37 template <typename Sequence> |
38 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
36 inline typename result_of::back<Sequence const>::type | 39 inline typename result_of::back<Sequence const>::type |
37 back(Sequence const& seq) | 40 back(Sequence const& seq) |
38 { | 41 { |
39 return *fusion::prior(fusion::end(seq)); | 42 return *fusion::prior(fusion::end(seq)); |
40 } | 43 } |