]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/fusion/include/boost/fusion/view/single_view/single_view_iterator.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / view / single_view / single_view_iterator.hpp
CommitLineData
7c673cae
FG
1/*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
3 Copyright (c) 2011 Eric Niebler
4
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7==============================================================================*/
8#if !defined(BOOST_FUSION_SINGLE_VIEW_ITERATOR_05052005_0340)
9#define BOOST_FUSION_SINGLE_VIEW_ITERATOR_05052005_0340
10
11#include <boost/fusion/support/config.hpp>
12#include <boost/fusion/support/detail/access.hpp>
13#include <boost/fusion/support/iterator_base.hpp>
14#include <boost/fusion/view/single_view/detail/deref_impl.hpp>
15#include <boost/fusion/view/single_view/detail/next_impl.hpp>
16#include <boost/fusion/view/single_view/detail/prior_impl.hpp>
17#include <boost/fusion/view/single_view/detail/advance_impl.hpp>
18#include <boost/fusion/view/single_view/detail/distance_impl.hpp>
19#include <boost/fusion/view/single_view/detail/equal_to_impl.hpp>
20#include <boost/fusion/view/single_view/detail/value_of_impl.hpp>
21#include <boost/config.hpp>
22
23#if defined (BOOST_MSVC)
24# pragma warning(push)
25# pragma warning (disable: 4512) // assignment operator could not be generated.
26#endif
27
28namespace boost { namespace fusion
29{
30 struct single_view_iterator_tag;
31 struct random_access_traversal_tag;
32
33 template <typename SingleView, typename Pos>
34 struct single_view_iterator
35 : iterator_base<single_view_iterator<SingleView, Pos> >
36 {
37 typedef single_view_iterator_tag fusion_tag;
38 typedef random_access_traversal_tag category;
39 typedef typename SingleView::value_type value_type;
40 typedef Pos position;
41 typedef SingleView single_view_type;
42
43 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
44 explicit single_view_iterator(single_view_type& in_view)
45 : view(in_view) {}
46
47 SingleView& view;
48
49 private:
50 single_view_iterator& operator=(single_view_iterator const&);
51 };
52}}
53
54#ifdef BOOST_FUSION_WORKAROUND_FOR_LWG_2408
55namespace std
56{
57 template <typename SingleView, typename Pos>
58 struct iterator_traits< ::boost::fusion::single_view_iterator<SingleView, Pos> >
59 { };
60}
61#endif
62
63#if defined (BOOST_MSVC)
64# pragma warning(pop)
65#endif
66
67#endif
68
69