Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/fusion/sequence/intrinsic/segments.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(BOOST_FUSION_SEGMENTS_04052005_1141) | 7 #if !defined(BOOST_FUSION_SEGMENTS_04052005_1141) |
8 #define BOOST_FUSION_SEGMENTS_04052005_1141 | 8 #define BOOST_FUSION_SEGMENTS_04052005_1141 |
9 | 9 |
10 #include <boost/fusion/support/config.hpp> | |
10 #include <boost/type_traits/is_const.hpp> | 11 #include <boost/type_traits/is_const.hpp> |
11 #include <boost/utility/enable_if.hpp> | 12 #include <boost/utility/enable_if.hpp> |
12 #include <boost/fusion/sequence/intrinsic_fwd.hpp> | 13 #include <boost/fusion/sequence/intrinsic_fwd.hpp> |
13 #include <boost/fusion/support/tag_of.hpp> | 14 #include <boost/fusion/support/tag_of.hpp> |
14 | 15 |
51 type; | 52 type; |
52 }; | 53 }; |
53 } | 54 } |
54 | 55 |
55 template <typename Sequence> | 56 template <typename Sequence> |
57 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
56 inline typename | 58 inline typename |
57 lazy_disable_if< | 59 lazy_disable_if< |
58 is_const<Sequence> | 60 is_const<Sequence> |
59 , result_of::segments<Sequence> | 61 , result_of::segments<Sequence> |
60 >::type | 62 >::type |
63 typedef typename traits::tag_of<Sequence>::type tag_type; | 65 typedef typename traits::tag_of<Sequence>::type tag_type; |
64 return extension::segments_impl<tag_type>::template apply<Sequence>::call(seq); | 66 return extension::segments_impl<tag_type>::template apply<Sequence>::call(seq); |
65 } | 67 } |
66 | 68 |
67 template <typename Sequence> | 69 template <typename Sequence> |
70 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
68 inline typename result_of::segments<Sequence const>::type | 71 inline typename result_of::segments<Sequence const>::type |
69 segments(Sequence const& seq) | 72 segments(Sequence const& seq) |
70 { | 73 { |
71 typedef typename traits::tag_of<Sequence const>::type tag_type; | 74 typedef typename traits::tag_of<Sequence const>::type tag_type; |
72 return extension::segments_impl<tag_type>::template apply<Sequence const>::call(seq); | 75 return extension::segments_impl<tag_type>::template apply<Sequence const>::call(seq); |