Sha256: 613b7af4ef54a4f9e4ff7c3b5eff8d47e64b114aa5e8f8e338e040a51555fbc2

Contents?: true

Size: 1.94 KB

Versions: 57

Compression:

Stored size: 1.94 KB

Contents

//  interator.hpp workarounds for non-conforming standard libraries  ---------//

//  (C) Copyright Beman Dawes 2000. 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)

//  See http://www.boost.org/libs/utility for documentation.

//  Revision History
//  12 Jan 01 added <cstddef> for std::ptrdiff_t (Jens Maurer)
//  28 Jun 00 Workarounds to deal with known MSVC bugs (David Abrahams)
//  26 Jun 00 Initial version (Jeremy Siek)

#ifndef BOOST_ITERATOR_HPP
#define BOOST_ITERATOR_HPP

#include <iterator>
#include <cstddef>           // std::ptrdiff_t
#include <boost/config.hpp>

namespace boost
{
# if defined(BOOST_NO_STD_ITERATOR) && !defined(BOOST_MSVC_STD_ITERATOR)
  template <class Category, class T,
    class Distance = std::ptrdiff_t,
    class Pointer = T*, class Reference = T&>
  struct iterator
  {
    typedef T         value_type;
    typedef Distance  difference_type;
    typedef Pointer   pointer;
    typedef Reference reference;
    typedef Category  iterator_category;
  };
# else

  // declare iterator_base in namespace detail to work around MSVC bugs which
  // prevent derivation from an identically-named class in a different namespace.
  namespace detail {
   template <class Category, class T, class Distance, class Pointer, class Reference>
#  if !defined(BOOST_MSVC_STD_ITERATOR)
   struct iterator_base : std::iterator<Category, T, Distance, Pointer, Reference> {};
#  else
   struct iterator_base : std::iterator<Category, T, Distance>
   {
     typedef Reference reference;
     typedef Pointer pointer;
     typedef Distance difference_type;
   };
#  endif
  }

  template <class Category, class T, class Distance = std::ptrdiff_t,
            class Pointer = T*, class Reference = T&>
  struct iterator : boost::detail::iterator_base<Category, T, Distance, Pointer, Reference> {};
# endif
} // namespace boost

#endif // BOOST_ITERATOR_HPP

Version data entries

57 entries across 57 versions & 8 rubygems

Version Path
railsware-passenger-3.0.2.1 ext/boost/iterator.hpp
passenger-3.0.2 ext/boost/iterator.hpp
passenger_dudemeister-3.0.1 ext/boost/iterator.hpp
passenger-3.0.1 ext/boost/iterator.hpp
passenger-3.0.0 ext/boost/iterator.hpp
passenger-3.0.0.pre4 ext/boost/iterator.hpp
passenger-3.0.0.pre3 ext/boost/iterator.hpp
passenger-3.0.0.pre2 ext/boost/iterator.hpp
passenger-3.0.0.pre1 ext/boost/iterator.hpp
passenger-2.2.15 ext/boost/iterator.hpp
passenger-2.2.14 ext/boost/iterator.hpp
passenger-2.2.13 ext/boost/iterator.hpp
passenger-2.2.12 ext/boost/iterator.hpp
colouringcode-passenger-0.2 ext/boost/iterator.hpp
passenger-2.2.11 ext/boost/iterator.hpp
passenger-jmazzi-2.2.10 ext/boost/iterator.hpp
passenger-2.2.10 ext/boost/iterator.hpp
passenger-jmazzi-2.2.9 ext/boost/iterator.hpp
passenger-2.2.9 ext/boost/iterator.hpp
passenger-2.2.8 ext/boost/iterator.hpp