Chris@102: ////////////////////////////////////////////////////////////////////////////// Chris@102: // Chris@102: // (C) Copyright Ion Gaztanaga 2014-2014. Chris@102: // Distributed under the Boost Software License, Version 1.0. Chris@102: // (See accompanying file LICENSE_1_0.txt or copy at Chris@102: // http://www.boost.org/LICENSE_1_0.txt) Chris@102: // Chris@102: // See http://www.boost.org/libs/move for documentation. Chris@102: // Chris@102: ////////////////////////////////////////////////////////////////////////////// Chris@102: Chris@102: //! \file Chris@102: Chris@102: #ifndef BOOST_MOVE_DETAIL_ITERATOR_TRAITS_HPP Chris@102: #define BOOST_MOVE_DETAIL_ITERATOR_TRAITS_HPP Chris@102: Chris@102: #ifndef BOOST_CONFIG_HPP Chris@102: # include Chris@102: #endif Chris@102: # Chris@102: #if defined(BOOST_HAS_PRAGMA_ONCE) Chris@102: # pragma once Chris@102: #endif Chris@102: Chris@102: #include Chris@102: Chris@102: #if defined(__clang__) && defined(_LIBCPP_VERSION) Chris@102: #define BOOST_MOVE_CLANG_INLINE_STD_NS Chris@102: #pragma GCC diagnostic push Chris@102: #pragma GCC diagnostic ignored "-Wc++11-extensions" Chris@102: #define BOOST_MOVE_STD_NS_BEG _LIBCPP_BEGIN_NAMESPACE_STD Chris@102: #define BOOST_MOVE_STD_NS_END _LIBCPP_END_NAMESPACE_STD Chris@102: #else Chris@102: #define BOOST_MOVE_STD_NS_BEG namespace std{ Chris@102: #define BOOST_MOVE_STD_NS_END } Chris@102: #endif Chris@102: Chris@102: BOOST_MOVE_STD_NS_BEG Chris@102: Chris@102: struct input_iterator_tag; Chris@102: struct forward_iterator_tag; Chris@102: struct bidirectional_iterator_tag; Chris@102: struct random_access_iterator_tag; Chris@102: struct output_iterator_tag; Chris@102: Chris@102: BOOST_MOVE_STD_NS_END Chris@102: Chris@102: #ifdef BOOST_MOVE_CLANG_INLINE_STD_NS Chris@102: #pragma GCC diagnostic pop Chris@102: #undef BOOST_MOVE_CLANG_INLINE_STD_NS Chris@102: #endif //BOOST_MOVE_CLANG_INLINE_STD_NS Chris@102: Chris@102: namespace boost{ namespace movelib{ Chris@102: Chris@102: template Chris@102: struct iterator_traits Chris@102: { Chris@102: typedef typename Iterator::difference_type difference_type; Chris@102: typedef typename Iterator::value_type value_type; Chris@102: typedef typename Iterator::pointer pointer; Chris@102: typedef typename Iterator::reference reference; Chris@102: typedef typename Iterator::iterator_category iterator_category; Chris@102: }; Chris@102: Chris@102: template Chris@102: struct iterator_traits Chris@102: { Chris@102: typedef std::ptrdiff_t difference_type; Chris@102: typedef T value_type; Chris@102: typedef T* pointer; Chris@102: typedef T& reference; Chris@102: typedef std::random_access_iterator_tag iterator_category; Chris@102: }; Chris@102: Chris@102: template Chris@102: struct iterator_traits Chris@102: { Chris@102: typedef std::ptrdiff_t difference_type; Chris@102: typedef T value_type; Chris@102: typedef const T* pointer; Chris@102: typedef const T& reference; Chris@102: typedef std::random_access_iterator_tag iterator_category; Chris@102: }; Chris@102: Chris@102: }} //namespace boost { namespace movelib{ Chris@102: Chris@102: #endif //#ifndef BOOST_MOVE_DETAIL_ITERATOR_TRAITS_HPP