Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //  Copyright Neil Groves 2010. Use, modification and
0002 //  distribution is subject to the Boost Software License, Version
0003 //  1.0. (See accompanying file LICENSE_1_0.txt or copy at
0004 //  http://www.boost.org/LICENSE_1_0.txt)
0005 //
0006 //
0007 // For more information, see http://www.boost.org/libs/range/
0008 //
0009 #ifndef BOOST_RANGE_ISTREAM_RANGE_HPP_INCLUDED
0010 #define BOOST_RANGE_ISTREAM_RANGE_HPP_INCLUDED
0011 
0012 /*!
0013  * \file istream_range.hpp
0014  */
0015 
0016 #include <iterator>
0017 #include <iosfwd>
0018 #include <boost/config.hpp>
0019 #include <boost/range/iterator_range.hpp>
0020 
0021 namespace boost
0022 {
0023     namespace range
0024     {
0025         template<class Type, class Elem, class Traits> inline
0026             iterator_range<std::istream_iterator<Type, Elem, Traits> >
0027         istream_range(std::basic_istream<Elem, Traits>& in)
0028         {
0029             return iterator_range<std::istream_iterator<Type, Elem, Traits> >(
0030                 std::istream_iterator<Type, Elem, Traits>(in),
0031                 std::istream_iterator<Type, Elem, Traits>());
0032         }
0033     } // namespace range
0034     using range::istream_range;
0035 } // namespace boost
0036 
0037 #endif // include guard