1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/range/rbegin.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,68 @@
1.4 +// Boost.Range library
1.5 +//
1.6 +// Copyright Thorsten Ottosen 2003-2004. Use, modification and
1.7 +// distribution is subject to the Boost Software License, Version
1.8 +// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
1.9 +// http://www.boost.org/LICENSE_1_0.txt)
1.10 +//
1.11 +// For more information, see http://www.boost.org/libs/range/
1.12 +//
1.13 +
1.14 +#ifndef BOOST_RANGE_RBEGIN_HPP
1.15 +#define BOOST_RANGE_RBEGIN_HPP
1.16 +
1.17 +#if defined(_MSC_VER) && (_MSC_VER >= 1200)
1.18 +# pragma once
1.19 +#endif
1.20 +
1.21 +#include <boost/range/end.hpp>
1.22 +#include <boost/range/reverse_result_iterator.hpp>
1.23 +#include <boost/range/reverse_iterator.hpp>
1.24 +#include <boost/range/const_reverse_iterator.hpp>
1.25 +
1.26 +namespace boost
1.27 +{
1.28 +
1.29 +#ifdef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
1.30 +
1.31 +template< class C >
1.32 +inline BOOST_DEDUCED_TYPENAME range_reverse_result_iterator<C>::type
1.33 +rbegin( C& c )
1.34 +{
1.35 + return BOOST_DEDUCED_TYPENAME range_reverse_result_iterator<C>::type( end( c ) );
1.36 +}
1.37 +
1.38 +#else
1.39 +
1.40 +template< class C >
1.41 +inline BOOST_DEDUCED_TYPENAME range_reverse_iterator<
1.42 + typename remove_const<C>::type >::type
1.43 +rbegin( C& c )
1.44 +{
1.45 + typedef BOOST_DEDUCED_TYPENAME range_reverse_iterator<
1.46 + typename remove_const<C>::type >::type
1.47 + iter_type;
1.48 + return iter_type( boost::end( c ) );
1.49 +}
1.50 +
1.51 +template< class C >
1.52 +inline BOOST_DEDUCED_TYPENAME range_const_reverse_iterator<C>::type
1.53 +rbegin( const C& c )
1.54 +{
1.55 + typedef BOOST_DEDUCED_TYPENAME range_const_reverse_iterator<C>::type
1.56 + iter_type;
1.57 + return iter_type( boost::end( c ) );
1.58 +}
1.59 +
1.60 +#endif // BOOST_NO_FUNCTION_TEMPLATE_ORDERING
1.61 +
1.62 +template< class T >
1.63 +inline BOOST_DEDUCED_TYPENAME range_const_reverse_iterator<T>::type
1.64 +const_rbegin( const T& r )
1.65 +{
1.66 + return boost::rbegin( r );
1.67 +}
1.68 +
1.69 +} // namespace 'boost'
1.70 +
1.71 +#endif