Chris@16: // Boost.Range library Chris@16: // Chris@16: // Copyright Thorsten Ottosen 2006. Use, modification and Chris@16: // distribution is subject to the Boost Software License, Version Chris@16: // 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: // For more information, see http://www.boost.org/libs/range/ Chris@16: // Chris@16: Chris@16: #ifndef BOOST_RANGE_DETAIL_AS_LITERAL_HPP Chris@16: #define BOOST_RANGE_DETAIL_AS_LITERAL_HPP Chris@16: Chris@101: #if defined(_MSC_VER) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@16: #include Chris@16: #include Chris@16: Chris@16: namespace boost Chris@16: { Chris@16: template< class Range > Chris@16: inline iterator_range::type> Chris@16: as_literal( Range& r ) Chris@16: { Chris@16: return ::boost::make_iterator_range( ::boost::range_detail::str_begin(r), Chris@16: ::boost::range_detail::str_end(r) ); Chris@16: } Chris@16: Chris@16: } Chris@16: Chris@16: #endif