/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman 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) ==============================================================================*/ #if !defined(FUSION_VECTOR_ITERATOR_05042005_0635) #define FUSION_VECTOR_ITERATOR_05042005_0635 #include #include #include #include #include #include #include #include #include #include #include namespace boost { namespace fusion { struct vector_iterator_tag; struct random_access_traversal_tag; template struct vector_iterator_identity; template struct vector_iterator : iterator_base > { typedef mpl::int_ index; typedef Vector vector; typedef vector_iterator_tag fusion_tag; typedef random_access_traversal_tag category; typedef vector_iterator_identity< typename add_const::type, N> identity; BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED vector_iterator(Vector& in_vec) : vec(in_vec) {} Vector& vec; // silence MSVC warning C4512: assignment operator could not be generated BOOST_DELETED_FUNCTION(vector_iterator& operator= (vector_iterator const&)) }; }} #ifdef BOOST_FUSION_WORKAROUND_FOR_LWG_2408 namespace std { template struct iterator_traits< ::boost::fusion::vector_iterator > { }; } #endif #endif