]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/fusion/view/nview/nview_iterator.hpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / boost / fusion / view / nview / nview_iterator.hpp
1 /*=============================================================================
2 Copyright (c) 2009 Hartmut Kaiser
3
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(BOOST_FUSION_NVIEW_ITERATOR_SEP_23_2009_0948PM)
8 #define BOOST_FUSION_NVIEW_ITERATOR_SEP_23_2009_0948PM
9
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/support/iterator_base.hpp>
12 #include <boost/fusion/support/category_of.hpp>
13 #include <boost/fusion/sequence/intrinsic/begin.hpp>
14 #include <boost/fusion/sequence/intrinsic/end.hpp>
15
16 #include <boost/fusion/view/nview/detail/size_impl.hpp>
17 #include <boost/fusion/view/nview/detail/begin_impl.hpp>
18 #include <boost/fusion/view/nview/detail/end_impl.hpp>
19 #include <boost/fusion/view/nview/detail/deref_impl.hpp>
20 #include <boost/fusion/view/nview/detail/value_of_impl.hpp>
21 #include <boost/fusion/view/nview/detail/next_impl.hpp>
22 #include <boost/fusion/view/nview/detail/prior_impl.hpp>
23 #include <boost/fusion/view/nview/detail/at_impl.hpp>
24 #include <boost/fusion/view/nview/detail/value_at_impl.hpp>
25 #include <boost/fusion/view/nview/detail/advance_impl.hpp>
26 #include <boost/fusion/view/nview/detail/distance_impl.hpp>
27 #include <boost/fusion/view/nview/detail/equal_to_impl.hpp>
28
29 namespace boost { namespace fusion
30 {
31 struct nview_iterator_tag;
32 struct random_access_traversal_tag;
33
34 template<typename Sequence, typename Pos>
35 struct nview_iterator
36 : iterator_base<nview_iterator<Sequence, Pos> >
37 {
38 typedef nview_iterator_tag fusion_tag;
39 typedef random_access_traversal_tag category;
40
41 typedef Sequence sequence_type;
42 typedef Pos first_type;
43
44 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
45 explicit nview_iterator(Sequence& in_seq)
46 : seq(in_seq) {}
47
48 Sequence& seq;
49
50 // silence MSVC warning C4512: assignment operator could not be generated
51 BOOST_DELETED_FUNCTION(nview_iterator& operator= (nview_iterator const&))
52 };
53
54 }}
55
56 #ifdef BOOST_FUSION_WORKAROUND_FOR_LWG_2408
57 namespace std
58 {
59 template <typename Sequence, typename Pos>
60 struct iterator_traits< ::boost::fusion::nview_iterator<Sequence, Pos> >
61 { };
62 }
63 #endif
64
65 #endif
66
67