Files
boost_range/include/boost/range/iterator.hpp

41 lines
1.1 KiB
C++
Raw Normal View History

2004-06-29 02:50:07 +00:00
// Boost.Range library
//
// Copyright Thorsten Ottosen 2003-2004. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// For more information, see http://www.boost.org/libs/range/
//
#ifndef BOOST_RANGE_ITERATOR_HPP
#define BOOST_RANGE_ITERATOR_HPP
2006-05-18 20:52:17 +00:00
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
2004-06-29 02:50:07 +00:00
# pragma once
#endif
#include <boost/range/config.hpp>
2006-05-18 20:52:17 +00:00
#include <boost/range/mutable_iterator.hpp>
#include <boost/range/const_iterator.hpp>
#include <boost/type_traits/is_const.hpp>
#include <boost/type_traits/remove_const.hpp>
#include <boost/mpl/eval_if.hpp>
2004-06-29 02:50:07 +00:00
namespace boost
{
template< typename C >
2004-08-16 22:07:07 +00:00
struct range_iterator
2004-06-29 02:50:07 +00:00
{
2006-05-18 20:52:17 +00:00
typedef BOOST_RANGE_DEDUCED_TYPENAME
mpl::eval_if_c< is_const<C>::value,
range_const_iterator< typename remove_const<C>::type >,
range_mutable_iterator<C> >::type type;
2004-06-29 02:50:07 +00:00
};
} // namespace boost
2006-05-18 20:52:17 +00:00
//#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
2004-06-29 02:50:07 +00:00
#endif