blob: 94b1b6e5f7ad3d0efe704d30d748a947f744afdd [file] [log] [blame]
Jeff Thompsonef2d5a42013-08-22 19:09:24 -07001// 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) && (_MSC_VER >= 1200)
15# pragma once
16#endif
17
18#include <ndnboost/range/detail/detail_str.hpp>
19#include <ndnboost/range/iterator_range.hpp>
20
21namespace ndnboost
22{
23 template< class Range >
24 inline iterator_range<BOOST_DEDUCED_TYPENAME range_iterator<Range>::type>
25 as_literal( Range& r )
26 {
27 return ::ndnboost::make_iterator_range( ::ndnboost::range_detail::str_begin(r),
28 ::ndnboost::range_detail::str_end(r) );
29 }
30
31}
32
33#endif