New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
as_literal.hpp in vendors/XIOS/current/extern/boost/include/boost/range/detail – NEMO

source: vendors/XIOS/current/extern/boost/include/boost/range/detail/as_literal.hpp @ 3408

Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

  • Property svn:keywords set to Id
File size: 900 bytes
Line 
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) && (_MSC_VER >= 1200)
15# pragma once
16#endif
17
18#include <boost/range/detail/detail_str.hpp>
19#include <boost/range/iterator_range.hpp>
20
21namespace 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
Note: See TracBrowser for help on using the repository browser.