2014-12-07 21:40:20 +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)
|
|
|
|
#ifndef ITERATOR_TRAITS_DWA200347_HPP
|
|
|
|
# define ITERATOR_TRAITS_DWA200347_HPP
|
|
|
|
|
|
|
|
# include <boost/detail/workaround.hpp>
|
|
|
|
|
2018-01-01 20:31:13 +00:00
|
|
|
#include <iterator>
|
|
|
|
|
2014-12-07 21:40:20 +00:00
|
|
|
namespace boost {
|
|
|
|
namespace iterators {
|
|
|
|
|
|
|
|
// Macro for supporting old compilers, no longer needed but kept
|
|
|
|
// for backwards compatibility (it was documented).
|
|
|
|
#define BOOST_ITERATOR_CATEGORY iterator_category
|
|
|
|
|
|
|
|
|
|
|
|
template <class Iterator>
|
|
|
|
struct iterator_value
|
|
|
|
{
|
2018-01-01 20:31:13 +00:00
|
|
|
typedef typename std::iterator_traits<Iterator>::value_type type;
|
2014-12-07 21:40:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
template <class Iterator>
|
|
|
|
struct iterator_reference
|
|
|
|
{
|
2018-01-01 20:31:13 +00:00
|
|
|
typedef typename std::iterator_traits<Iterator>::reference type;
|
2014-12-07 21:40:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
template <class Iterator>
|
|
|
|
struct iterator_pointer
|
|
|
|
{
|
2018-01-01 20:31:13 +00:00
|
|
|
typedef typename std::iterator_traits<Iterator>::pointer type;
|
2014-12-07 21:40:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
template <class Iterator>
|
|
|
|
struct iterator_difference
|
|
|
|
{
|
2018-01-01 20:31:13 +00:00
|
|
|
typedef typename std::iterator_traits<Iterator>::difference_type type;
|
2014-12-07 21:40:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
template <class Iterator>
|
|
|
|
struct iterator_category
|
|
|
|
{
|
2018-01-01 20:31:13 +00:00
|
|
|
typedef typename std::iterator_traits<Iterator>::iterator_category type;
|
2014-12-07 21:40:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace iterators
|
|
|
|
|
|
|
|
using iterators::iterator_value;
|
|
|
|
using iterators::iterator_reference;
|
|
|
|
using iterators::iterator_pointer;
|
|
|
|
using iterators::iterator_difference;
|
|
|
|
using iterators::iterator_category;
|
|
|
|
|
|
|
|
} // namespace boost
|
|
|
|
|
|
|
|
#endif // ITERATOR_TRAITS_DWA200347_HPP
|