annotate DEPENDENCIES/generic/include/boost/range/detail/as_literal.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 c530137014c0
children
rev   line source
Chris@16 1 // Boost.Range library
Chris@16 2 //
Chris@16 3 // Copyright Thorsten Ottosen 2006. Use, modification and
Chris@16 4 // distribution is subject to the Boost Software License, Version
Chris@16 5 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 6 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 7 //
Chris@16 8 // For more information, see http://www.boost.org/libs/range/
Chris@16 9 //
Chris@16 10
Chris@16 11 #ifndef BOOST_RANGE_DETAIL_AS_LITERAL_HPP
Chris@16 12 #define BOOST_RANGE_DETAIL_AS_LITERAL_HPP
Chris@16 13
Chris@101 14 #if defined(_MSC_VER)
Chris@16 15 # pragma once
Chris@16 16 #endif
Chris@16 17
Chris@16 18 #include <boost/range/detail/detail_str.hpp>
Chris@16 19 #include <boost/range/iterator_range.hpp>
Chris@16 20
Chris@16 21 namespace boost
Chris@16 22 {
Chris@16 23 template< class Range >
Chris@16 24 inline iterator_range<BOOST_DEDUCED_TYPENAME range_iterator<Range>::type>
Chris@16 25 as_literal( Range& r )
Chris@16 26 {
Chris@16 27 return ::boost::make_iterator_range( ::boost::range_detail::str_begin(r),
Chris@16 28 ::boost::range_detail::str_end(r) );
Chris@16 29 }
Chris@16 30
Chris@16 31 }
Chris@16 32
Chris@16 33 #endif