2004-07-26 00:32:12 +00:00
|
|
|
// Copyright David Abrahams 2003.
|
|
|
|
// Distributed under 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)
|
2003-07-07 14:14:36 +00:00
|
|
|
#ifndef ITERATOR_TRAITS_DWA200347_HPP
|
|
|
|
# define ITERATOR_TRAITS_DWA200347_HPP
|
|
|
|
|
|
|
|
# include <boost/detail/iterator.hpp>
|
|
|
|
# include <boost/detail/workaround.hpp>
|
|
|
|
|
|
|
|
namespace boost {
|
|
|
|
|
2013-09-30 15:54:32 +00:00
|
|
|
// Obsolete. Remove.
|
2013-09-30 15:54:03 +00:00
|
|
|
#define BOOST_ITERATOR_CATEGORY iterator_category
|
2003-07-07 14:14:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
template <class Iterator>
|
|
|
|
struct iterator_value
|
|
|
|
{
|
2007-11-25 18:07:19 +00:00
|
|
|
typedef typename boost::detail::iterator_traits<Iterator>::value_type type;
|
2003-07-07 14:14:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
template <class Iterator>
|
|
|
|
struct iterator_reference
|
|
|
|
{
|
2007-11-25 18:07:19 +00:00
|
|
|
typedef typename boost::detail::iterator_traits<Iterator>::reference type;
|
2003-07-07 14:14:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
template <class Iterator>
|
|
|
|
struct iterator_pointer
|
|
|
|
{
|
2007-11-25 18:07:19 +00:00
|
|
|
typedef typename boost::detail::iterator_traits<Iterator>::pointer type;
|
2003-07-07 14:14:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
template <class Iterator>
|
|
|
|
struct iterator_difference
|
|
|
|
{
|
2007-11-25 18:07:19 +00:00
|
|
|
typedef typename boost::detail::iterator_traits<Iterator>::difference_type type;
|
2003-07-07 14:14:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
template <class Iterator>
|
2013-09-30 15:54:32 +00:00
|
|
|
struct iterator_category
|
2003-07-07 14:14:36 +00:00
|
|
|
{
|
2007-11-25 18:07:19 +00:00
|
|
|
typedef typename boost::detail::iterator_traits<Iterator>::iterator_category type;
|
2003-07-07 14:14:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace boost::iterator
|
|
|
|
|
|
|
|
#endif // ITERATOR_TRAITS_DWA200347_HPP
|