Sha256: cc0b4e936d8882b645c6635eba8bbae5a0dd418b48f43fef2bf9f3654d09b9ee

Contents?: true

Size: 1.42 KB

Versions: 29

Compression:

Stored size: 1.42 KB

Contents

// 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>

#include <iterator>

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
{
    typedef typename std::iterator_traits<Iterator>::value_type type;
};

template <class Iterator>
struct iterator_reference
{
    typedef typename std::iterator_traits<Iterator>::reference type;
};


template <class Iterator>
struct iterator_pointer
{
    typedef typename std::iterator_traits<Iterator>::pointer type;
};

template <class Iterator>
struct iterator_difference
{
    typedef typename std::iterator_traits<Iterator>::difference_type type;
};

template <class Iterator>
struct iterator_category
{
    typedef typename std::iterator_traits<Iterator>::iterator_category type;
};

} // 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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
passenger-6.0.26 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.25 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.24 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.23 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.8 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/iterator/iterator_traits.hpp