annotate DEPENDENCIES/generic/include/boost/range/istream_range.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // Copyright Neil Groves 2010. Use, modification and
Chris@16 2 // distribution is subject to the Boost Software License, Version
Chris@16 3 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 4 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 5 //
Chris@16 6 //
Chris@16 7 // For more information, see http://www.boost.org/libs/range/
Chris@16 8 //
Chris@16 9 #ifndef BOOST_RANGE_ISTREAM_RANGE_HPP_INCLUDED
Chris@16 10 #define BOOST_RANGE_ISTREAM_RANGE_HPP_INCLUDED
Chris@16 11
Chris@16 12 /*!
Chris@16 13 * \file istream_range.hpp
Chris@16 14 */
Chris@16 15
Chris@16 16 #include <iterator>
Chris@16 17 #include <iosfwd>
Chris@16 18 #include <boost/config.hpp>
Chris@16 19 #include <boost/range/iterator_range.hpp>
Chris@16 20
Chris@16 21 namespace boost
Chris@16 22 {
Chris@16 23 namespace range
Chris@16 24 {
Chris@16 25 template<class Type, class Elem, class Traits> inline
Chris@16 26 iterator_range<std::istream_iterator<Type, Elem, Traits> >
Chris@16 27 istream_range(std::basic_istream<Elem, Traits>& in)
Chris@16 28 {
Chris@16 29 return iterator_range<std::istream_iterator<Type, Elem, Traits> >(
Chris@16 30 std::istream_iterator<Type, Elem, Traits>(in),
Chris@16 31 std::istream_iterator<Type, Elem, Traits>());
Chris@16 32 }
Chris@16 33 } // namespace range
Chris@16 34 using range::istream_range;
Chris@16 35 } // namespace boost
Chris@16 36
Chris@16 37 #endif // include guard