blob: 223ae18bfe3764e374b7d87014dbeca786c05c4b [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
Jeff Thompson3d613fd2013-10-15 15:39:04 -070011#ifndef NDNBOOST_RANGE_DETAIL_AS_LITERAL_HPP
12#define NDNBOOST_RANGE_DETAIL_AS_LITERAL_HPP
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070013
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 >
Jeff Thompson3d613fd2013-10-15 15:39:04 -070024 inline iterator_range<NDNBOOST_DEDUCED_TYPENAME range_iterator<Range>::type>
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070025 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