File indexing completed on 2025-01-18 09:51:17
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_RANGE_DISTANCE_HPP
0012 #define BOOST_RANGE_DISTANCE_HPP
0013
0014 #if defined(_MSC_VER)
0015 # pragma once
0016 #endif
0017
0018 #include <boost/iterator/distance.hpp>
0019 #include <boost/range/begin.hpp>
0020 #include <boost/range/end.hpp>
0021 #include <boost/range/difference_type.hpp>
0022
0023 namespace boost
0024 {
0025
0026 namespace range_distance_adl_barrier
0027 {
0028 template< class T >
0029 inline BOOST_CXX14_CONSTEXPR BOOST_DEDUCED_TYPENAME range_difference<T>::type
0030 distance( const T& r )
0031 {
0032 return boost::iterators::distance( boost::begin( r ), boost::end( r ) );
0033 }
0034 }
0035
0036 using namespace range_distance_adl_barrier;
0037
0038 }
0039
0040 #endif