Sha256: 7b9993e0c49c30c8bfe4d09b1ad3a045943013d2f2e688fdf21e9fe6b4027543

Contents?: true

Size: 1.04 KB

Versions: 28

Compression:

Stored size: 1.04 KB

Contents

// (C) Copyright David Abrahams 2002.
// 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_DWA122600_HPP_
#define ITERATOR_DWA122600_HPP_

// This header is obsolete and will be deprecated.

#include <iterator>
#if defined(__SUNPRO_CC) && (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))
#include <cstddef>
#endif

namespace boost
{

namespace detail
{

using std::iterator_traits;
using std::distance;

#if defined(__SUNPRO_CC) && (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))
// std::distance from stlport with Oracle compiler 12.4 and 12.5 fails to deduce template parameters
// when one of the arguments is an array and the other one is a pointer.
template< typename T, std::size_t N >
inline typename std::iterator_traits< T* >::difference_type distance(T (&left)[N], T* right)
{
    return std::distance(static_cast< T* >(left), right);
}
#endif

} // namespace detail

} // namespace boost

#endif // ITERATOR_DWA122600_HPP_

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-6.0.4 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-6.0.3 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-6.0.2 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-6.0.1 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-6.0.0 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-5.3.7 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-5.3.6 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-5.3.5 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-5.3.4 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-5.3.3 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-5.3.2 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-5.3.1 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-5.3.0 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-5.2.3 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-5.2.2 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-5.2.1 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp
passenger-5.2.0 src/cxx_supportlib/vendor-modified/boost/detail/iterator.hpp