]> git.donarmstrong.com Git - rsem.git/blob - boost/fusion/view/single_view/single_view_iterator.hpp
Updated boost to v1.55.0
[rsem.git] / boost / fusion / view / single_view / single_view_iterator.hpp
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/detail/access.hpp>
12 #include <boost/fusion/support/iterator_base.hpp>
13 #include <boost/fusion/view/single_view/detail/deref_impl.hpp>
14 #include <boost/fusion/view/single_view/detail/next_impl.hpp>
15 #include <boost/fusion/view/single_view/detail/prior_impl.hpp>
16 #include <boost/fusion/view/single_view/detail/advance_impl.hpp>
17 #include <boost/fusion/view/single_view/detail/distance_impl.hpp>
18 #include <boost/fusion/view/single_view/detail/equal_to_impl.hpp>
19 #include <boost/fusion/view/single_view/detail/value_of_impl.hpp>
20 #include <boost/config.hpp>
21
22 #if defined (BOOST_MSVC)
23 #  pragma warning(push)
24 #  pragma warning (disable: 4512) // assignment operator could not be generated.
25 #endif
26
27 namespace boost { namespace fusion
28 {
29     struct single_view_iterator_tag;
30     struct random_access_traversal_tag;
31
32     template <typename SingleView, typename Pos>
33     struct single_view_iterator
34         : iterator_base<single_view_iterator<SingleView, Pos> >
35     {
36         typedef single_view_iterator_tag fusion_tag;
37         typedef random_access_traversal_tag category;
38         typedef typename SingleView::value_type value_type;
39         typedef Pos position;
40         typedef SingleView single_view_type;
41
42         explicit single_view_iterator(single_view_type& in_view)
43             : view(in_view) {}
44
45         SingleView& view;
46
47     private:
48         single_view_iterator& operator=(single_view_iterator const&);
49     };
50 }}
51
52 #if defined (BOOST_MSVC)
53 #  pragma warning(pop)
54 #endif
55
56 #endif
57
58