Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/fusion/iterator/advance.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_ADVANCE_09172005_1146) | 7 #if !defined(FUSION_ADVANCE_09172005_1146) |
8 #define FUSION_ADVANCE_09172005_1146 | 8 #define FUSION_ADVANCE_09172005_1146 |
9 | 9 |
10 #include <boost/fusion/support/config.hpp> | |
10 #include <boost/fusion/iterator/detail/advance.hpp> | 11 #include <boost/fusion/iterator/detail/advance.hpp> |
11 #include <boost/fusion/support/category_of.hpp> | 12 #include <boost/fusion/support/category_of.hpp> |
12 | 13 |
13 #include <boost/mpl/int.hpp> | 14 #include <boost/mpl/int.hpp> |
14 #include <boost/mpl/assert.hpp> | 15 #include <boost/mpl/assert.hpp> |
72 : extension::advance_impl<typename detail::tag_of<Iterator>::type>::template apply<Iterator, N> | 73 : extension::advance_impl<typename detail::tag_of<Iterator>::type>::template apply<Iterator, N> |
73 {}; | 74 {}; |
74 } | 75 } |
75 | 76 |
76 template <int N, typename Iterator> | 77 template <int N, typename Iterator> |
78 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
77 inline typename result_of::advance_c<Iterator, N>::type const | 79 inline typename result_of::advance_c<Iterator, N>::type const |
78 advance_c(Iterator const& i) | 80 advance_c(Iterator const& i) |
79 { | 81 { |
80 return result_of::advance_c<Iterator, N>::call(i); | 82 return result_of::advance_c<Iterator, N>::call(i); |
81 } | 83 } |
82 | 84 |
83 template<typename N, typename Iterator> | 85 template<typename N, typename Iterator> |
86 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
84 inline typename result_of::advance<Iterator, N>::type const | 87 inline typename result_of::advance<Iterator, N>::type const |
85 advance(Iterator const& i) | 88 advance(Iterator const& i) |
86 { | 89 { |
87 return result_of::advance<Iterator, N>::call(i); | 90 return result_of::advance<Iterator, N>::call(i); |
88 } | 91 } |