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.
rend.hpp in vendors/XIOS/current/extern/boost/include/boost/range – NEMO

source: vendors/XIOS/current/extern/boost/include/boost/range/rend.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: 1.4 KB
Line 
1// Boost.Range library
2//
3//  Copyright Thorsten Ottosen 2003-2004. 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_REND_HPP
12#define BOOST_RANGE_REND_HPP
13
14#if defined(_MSC_VER) && (_MSC_VER >= 1200)
15# pragma once
16#endif
17
18#include <boost/range/begin.hpp>
19#include <boost/range/reverse_iterator.hpp>
20
21namespace boost
22{
23
24#ifdef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
25
26template< class C >
27inline BOOST_DEDUCED_TYPENAME range_reverse_iterator<C>::type
28rend( C& c )
29{
30    return BOOST_DEDUCED_TYPENAME range_reverse_iterator<C>::type( boost::begin( c ) );
31}
32
33#else
34
35template< class C >
36inline BOOST_DEDUCED_TYPENAME range_reverse_iterator<C>::type
37rend( C& c )
38{
39    typedef BOOST_DEDUCED_TYPENAME range_reverse_iterator<C>::type
40               iter_type;
41    return iter_type( boost::begin( c ) );
42}
43
44template< class C >
45inline BOOST_DEDUCED_TYPENAME range_reverse_iterator<const C>::type
46rend( const C& c )
47{
48    typedef BOOST_DEDUCED_TYPENAME range_reverse_iterator<const C>::type
49        iter_type;
50    return iter_type( boost::begin( c ) );
51}
52
53#endif
54
55template< class T >
56inline BOOST_DEDUCED_TYPENAME range_reverse_iterator<const T>::type
57const_rend( const T& r )
58{
59    return boost::rend( r );
60}
61
62} // namespace 'boost'
63
64#endif
65
Note: See TracBrowser for help on using the repository browser.