File indexing completed on 2025-01-30 09:59:19
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_RANGE_AS_ARRAY_HPP
0012 #define BOOST_RANGE_AS_ARRAY_HPP
0013
0014 #if defined(_MSC_VER)
0015 # pragma once
0016 #endif
0017
0018 #include <boost/range/iterator_range.hpp>
0019 #include <boost/range/detail/str_types.hpp>
0020
0021 namespace boost
0022 {
0023
0024 template< class R >
0025 inline iterator_range< BOOST_DEDUCED_TYPENAME range_iterator<R>::type >
0026 as_array( R& r )
0027 {
0028 return boost::make_iterator_range( r );
0029 }
0030
0031 template< class Range >
0032 inline boost::iterator_range< BOOST_DEDUCED_TYPENAME range_iterator<const Range>::type >
0033 as_array( const Range& r )
0034 {
0035 return boost::make_iterator_range( r );
0036 }
0037
0038 }
0039
0040 #endif
0041