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)
8 // For more information, see http://www.boost.org/libs/range/
11 #ifndef BOOST_RANGE_RBEGIN_HPP
12 #define BOOST_RANGE_RBEGIN_HPP
18 #include <boost/range/end.hpp>
19 #include <boost/range/reverse_iterator.hpp>
24 #ifdef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
27 inline BOOST_DEDUCED_TYPENAME range_reverse_iterator<C>::type
30 return BOOST_DEDUCED_TYPENAME range_reverse_iterator<C>::type( boost::end( c ) );
36 inline BOOST_DEDUCED_TYPENAME range_reverse_iterator<C>::type
39 typedef BOOST_DEDUCED_TYPENAME range_reverse_iterator<C>::type
41 return iter_type( boost::end( c ) );
45 inline BOOST_DEDUCED_TYPENAME range_reverse_iterator<const C>::type
48 typedef BOOST_DEDUCED_TYPENAME range_reverse_iterator<const C>::type
50 return iter_type( boost::end( c ) );
53 #endif // BOOST_NO_FUNCTION_TEMPLATE_ORDERING
56 inline BOOST_DEDUCED_TYPENAME range_reverse_iterator<const T>::type
57 const_rbegin( const T& r )
59 return boost::rbegin( r );
62 } // namespace 'boost'