Boost.Range

Function istream_range

The intention of the istream_range function is to construct a new range with a pair of std::istream_iterators that wrap a specified std::basic_istream instance.

Synopsis

namespace boost
{
    template< class 
        Type, class 
            Elem, class Traits > inline
    range< std::istream_iterator<Type, Elem, Traits> >
    istream_range(std::basic_istream<Elem, Traits>& in);
}    

© Copyright Neil Groves 2009.

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt)