// Boost.Range library // // Copyright Thorsten Ottosen 2003-2006. Use, modification and // distribution is subject to the Boost Software License, Version // 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // For more information, see http://www.boost.org/libs/range/ // #ifndef ACTIV_BOOST_RANGE_DISTANCE_HPP #define ACTIV_BOOST_RANGE_DISTANCE_HPP #if defined(_MSC_VER) # pragma once #endif #include #include #include #include namespace Boost { namespace range_distance_adl_barrier { template< class T > inline ACTIV_BOOST_CXX14_CONSTEXPR ACTIV_BOOST_DEDUCED_TYPENAME range_difference::type distance( const T& r ) { return Boost::iterators::distance( Boost::begin( r ), Boost::end( r ) ); } } using namespace range_distance_adl_barrier; } // namespace 'boost' #endif