File indexing completed on 2025-01-30 09:35:27
0001
0002
0003
0004
0005
0006 #ifndef ITERATOR_DWA122600_HPP_
0007 #define ITERATOR_DWA122600_HPP_
0008
0009
0010
0011 #include <boost/config/header_deprecated.hpp>
0012
0013 BOOST_HEADER_DEPRECATED("<iterator>")
0014
0015 #include <iterator>
0016 #if defined(__SUNPRO_CC) && (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))
0017 #include <cstddef>
0018 #endif
0019
0020 namespace boost
0021 {
0022
0023 namespace detail
0024 {
0025
0026 using std::iterator_traits;
0027 using std::distance;
0028
0029 #if defined(__SUNPRO_CC) && (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))
0030
0031
0032 template< typename T, std::size_t N >
0033 inline typename std::iterator_traits< T* >::difference_type distance(T (&left)[N], T* right)
0034 {
0035 return std::distance(static_cast< T* >(left), right);
0036 }
0037 #endif
0038
0039 }
0040
0041 }
0042
0043 #endif