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_RESULT_ITERATOR_HPP
12 #define BOOST_RANGE_RESULT_ITERATOR_HPP
14 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
18 #include <boost/range/config.hpp>
19 #include <boost/range/iterator.hpp>
20 #include <boost/range/const_iterator.hpp>
21 #include <boost/type_traits/is_const.hpp>
22 #include <boost/mpl/if.hpp>
26 //////////////////////////////////////////////////////////////////////////
28 //////////////////////////////////////////////////////////////////////////
30 template< typename C >
31 struct range_result_iterator
33 typedef BOOST_RANGE_DEDUCED_TYPENAME
34 mpl::if_< BOOST_DEDUCED_TYPENAME is_const<C>::type,
35 BOOST_DEDUCED_TYPENAME range_const_iterator<C>::type,
36 BOOST_DEDUCED_TYPENAME range_iterator<C>::type >::type type;
41 //#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION