2009-09-25 00:20:03 +00:00
|
|
|
/*=============================================================================
|
|
|
|
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
|
|
|
|
|
2014-01-09 17:58:06 -08:00
|
|
|
#include <boost/fusion/support/config.hpp>
|
2009-09-25 00:20:03 +00:00
|
|
|
#include <boost/fusion/support/iterator_base.hpp>
|
|
|
|
#include <boost/fusion/support/category_of.hpp>
|
|
|
|
#include <boost/fusion/sequence/intrinsic/begin.hpp>
|
|
|
|
#include <boost/fusion/sequence/intrinsic/end.hpp>
|
|
|
|
|
2009-10-05 22:30:23 +00:00
|
|
|
#include <boost/fusion/view/nview/detail/size_impl.hpp>
|
2009-09-25 00:20:03 +00:00
|
|
|
#include <boost/fusion/view/nview/detail/begin_impl.hpp>
|
|
|
|
#include <boost/fusion/view/nview/detail/end_impl.hpp>
|
|
|
|
#include <boost/fusion/view/nview/detail/deref_impl.hpp>
|
|
|
|
#include <boost/fusion/view/nview/detail/value_of_impl.hpp>
|
|
|
|
#include <boost/fusion/view/nview/detail/next_impl.hpp>
|
|
|
|
#include <boost/fusion/view/nview/detail/prior_impl.hpp>
|
|
|
|
#include <boost/fusion/view/nview/detail/at_impl.hpp>
|
|
|
|
#include <boost/fusion/view/nview/detail/value_at_impl.hpp>
|
|
|
|
#include <boost/fusion/view/nview/detail/advance_impl.hpp>
|
|
|
|
#include <boost/fusion/view/nview/detail/distance_impl.hpp>
|
|
|
|
#include <boost/fusion/view/nview/detail/equal_to_impl.hpp>
|
|
|
|
|
|
|
|
namespace boost { namespace fusion
|
|
|
|
{
|
|
|
|
struct nview_iterator_tag;
|
|
|
|
struct random_access_traversal_tag;
|
|
|
|
|
|
|
|
template<typename Sequence, typename Pos>
|
|
|
|
struct nview_iterator
|
|
|
|
: iterator_base<nview_iterator<Sequence, Pos> >
|
|
|
|
{
|
|
|
|
typedef nview_iterator_tag fusion_tag;
|
|
|
|
typedef random_access_traversal_tag category;
|
|
|
|
|
|
|
|
typedef Sequence sequence_type;
|
2014-12-17 21:09:42 +09:00
|
|
|
typedef Pos first_type;
|
2009-09-25 00:20:03 +00:00
|
|
|
|
2015-03-03 02:21:02 +09:00
|
|
|
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
|
|
|
explicit nview_iterator(Sequence& in_seq)
|
2010-06-12 17:59:10 +00:00
|
|
|
: seq(in_seq) {}
|
2009-09-25 00:20:03 +00:00
|
|
|
|
|
|
|
Sequence& seq;
|
2009-11-09 03:57:40 +00:00
|
|
|
|
|
|
|
// silence MSVC warning C4512: assignment operator could not be generated
|
2019-04-17 14:05:46 +00:00
|
|
|
BOOST_DELETED_FUNCTION(nview_iterator& operator= (nview_iterator const&))
|
2009-09-25 00:20:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
2015-02-05 23:04:36 +09:00
|
|
|
#ifdef BOOST_FUSION_WORKAROUND_FOR_LWG_2408
|
|
|
|
namespace std
|
|
|
|
{
|
|
|
|
template <typename Sequence, typename Pos>
|
|
|
|
struct iterator_traits< ::boost::fusion::nview_iterator<Sequence, Pos> >
|
|
|
|
{ };
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2009-09-25 00:20:03 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|