Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/fusion/iterator/distance.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_DISTANCE_09172005_0721) | 7 #if !defined(FUSION_DISTANCE_09172005_0721) |
8 #define FUSION_DISTANCE_09172005_0721 | 8 #define FUSION_DISTANCE_09172005_0721 |
9 | 9 |
10 #include <boost/fusion/support/config.hpp> | |
10 #include <boost/fusion/iterator/detail/distance.hpp> | 11 #include <boost/fusion/iterator/detail/distance.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> |
66 BOOST_STATIC_CONSTANT(int, value = distance_application::value); | 67 BOOST_STATIC_CONSTANT(int, value = distance_application::value); |
67 }; | 68 }; |
68 } | 69 } |
69 | 70 |
70 template <typename First, typename Last> | 71 template <typename First, typename Last> |
72 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED | |
71 inline typename result_of::distance<First, Last>::type | 73 inline typename result_of::distance<First, Last>::type |
72 distance(First const& a, Last const& b) | 74 distance(First const& a, Last const& b) |
73 { | 75 { |
74 return result_of::distance<First, Last>::call(a,b); | 76 return result_of::distance<First, Last>::call(a,b); |
75 } | 77 } |