Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:59:19

0001 // Boost.Range library
0002 //
0003 //  Copyright Thorsten Ottosen 2006. Use, modification and
0004 //  distribution is subject to the Boost Software License, Version
0005 //  1.0. (See accompanying file LICENSE_1_0.txt or copy at
0006 //  http://www.boost.org/LICENSE_1_0.txt)
0007 //
0008 // For more information, see http://www.boost.org/libs/range/
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