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_DETAIL_ITERATOR_HPP
12 #define BOOST_RANGE_DETAIL_ITERATOR_HPP
14 #include <boost/range/detail/common.hpp>
15 #include <boost/range/detail/remove_extent.hpp>
17 #include <boost/static_assert.hpp>
19 //////////////////////////////////////////////////////////////////////////////
20 // missing partial specialization workaround.
21 //////////////////////////////////////////////////////////////////////////////
25 namespace range_detail
27 template< typename T >
28 struct range_iterator_ {
29 template< typename C >
37 struct range_iterator_<std_container_>
39 template< typename C >
42 typedef BOOST_RANGE_DEDUCED_TYPENAME C::iterator type;
47 struct range_iterator_<std_pair_>
49 template< typename P >
52 typedef BOOST_RANGE_DEDUCED_TYPENAME P::first_type type;
57 struct range_iterator_<array_>
59 template< typename T >
62 typedef BOOST_RANGE_DEDUCED_TYPENAME
63 remove_extent<T>::type* type;
69 template< typename C >
70 class range_mutable_iterator
72 typedef BOOST_RANGE_DEDUCED_TYPENAME range_detail::range<C>::type c_type;
74 typedef typename range_detail::range_iterator_<c_type>::BOOST_NESTED_TEMPLATE pts<C>::type type;