Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
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_ITERATOR_HPP
12 #define BOOST_RANGE_ITERATOR_HPP
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
18 #include <boost/range/config.hpp>
20 #ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
21 #include <boost/range/detail/iterator.hpp>
24 #include <boost/iterator/iterator_traits.hpp>
30 //////////////////////////////////////////////////////////////////////////
32 //////////////////////////////////////////////////////////////////////////
34 template< typename C >
37 typedef BOOST_DEDUCED_TYPENAME C::iterator type;
40 //////////////////////////////////////////////////////////////////////////
42 //////////////////////////////////////////////////////////////////////////
44 template< typename Iterator >
45 struct range_iterator< std::pair<Iterator,Iterator> >
47 typedef Iterator type;
50 template< typename Iterator >
51 struct range_iterator< const std::pair<Iterator,Iterator> >
53 typedef Iterator type;
56 //////////////////////////////////////////////////////////////////////////
58 //////////////////////////////////////////////////////////////////////////
60 template< typename T, std::size_t sz >
61 struct range_iterator< T[sz] >
66 template< typename T, std::size_t sz >
67 struct range_iterator< const T[sz] >
69 typedef const T* type;
72 //////////////////////////////////////////////////////////////////////////
74 //////////////////////////////////////////////////////////////////////////
77 struct range_iterator< char* >
83 struct range_iterator< wchar_t* >
85 typedef wchar_t* type;
89 struct range_iterator< const char* >
91 typedef const char* type;
95 struct range_iterator< const wchar_t* >
97 typedef const wchar_t* type;
101 struct range_iterator< char* const >
107 struct range_iterator< wchar_t* const >
109 typedef wchar_t* type;
113 struct range_iterator< const char* const >
115 typedef const char* type;
119 struct range_iterator< const wchar_t* const >
121 typedef const wchar_t* type;
126 #endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION