File indexing completed on 2025-01-30 09:59:20
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_RANGE_ISTREAM_RANGE_HPP_INCLUDED
0010 #define BOOST_RANGE_ISTREAM_RANGE_HPP_INCLUDED
0011
0012
0013
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 }
0034 using range::istream_range;
0035 }
0036
0037 #endif