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