/*============================================================================= Copyright (c) 2009 Hartmut Kaiser 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(BOOST_FUSION_NVIEW_ITERATOR_SEP_23_2009_0948PM) #define BOOST_FUSION_NVIEW_ITERATOR_SEP_23_2009_0948PM #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef _MSC_VER # pragma warning(push) # pragma warning(disable: 4512) // assignment operator could not be generated. #endif namespace boost { namespace fusion { struct nview_iterator_tag; struct random_access_traversal_tag; template struct nview_iterator : iterator_base > { typedef nview_iterator_tag fusion_tag; typedef random_access_traversal_tag category; typedef Sequence sequence_type; typedef Pos first_type; BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED explicit nview_iterator(Sequence& in_seq) : seq(in_seq) {} Sequence& seq; }; }} #ifdef _MSC_VER # pragma warning(pop) #endif #ifdef BOOST_FUSION_WORKAROUND_FOR_LWG_2408 namespace std { template struct iterator_traits< ::boost::fusion::nview_iterator > { }; } #endif #endif