Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:34:59

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003     Copyright (c) 2011 Eric Niebler
0004 
0005     Distributed under the Boost Software License, Version 1.0. (See accompanying 
0006     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0007 ==============================================================================*/
0008 #if !defined(BOOST_FUSION_SINGLE_VIEW_ITERATOR_05052005_0340)
0009 #define BOOST_FUSION_SINGLE_VIEW_ITERATOR_05052005_0340
0010 
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/fusion/support/detail/access.hpp>
0013 #include <boost/fusion/support/iterator_base.hpp>
0014 #include <boost/fusion/view/single_view/detail/deref_impl.hpp>
0015 #include <boost/fusion/view/single_view/detail/next_impl.hpp>
0016 #include <boost/fusion/view/single_view/detail/prior_impl.hpp>
0017 #include <boost/fusion/view/single_view/detail/advance_impl.hpp>
0018 #include <boost/fusion/view/single_view/detail/distance_impl.hpp>
0019 #include <boost/fusion/view/single_view/detail/equal_to_impl.hpp>
0020 #include <boost/fusion/view/single_view/detail/value_of_impl.hpp>
0021 #include <boost/config.hpp>
0022 
0023 #ifdef _MSC_VER
0024 #  pragma warning(push)
0025 #  pragma warning(disable: 4512) // assignment operator could not be generated.
0026 #endif
0027 
0028 namespace boost { namespace fusion
0029 {
0030     struct single_view_iterator_tag;
0031     struct random_access_traversal_tag;
0032 
0033     template <typename SingleView, typename Pos>
0034     struct single_view_iterator
0035         : iterator_base<single_view_iterator<SingleView, Pos> >
0036     {
0037         typedef single_view_iterator_tag fusion_tag;
0038         typedef random_access_traversal_tag category;
0039         typedef typename SingleView::value_type value_type;
0040         typedef Pos position;
0041         typedef SingleView single_view_type;
0042 
0043         BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0044         explicit single_view_iterator(single_view_type& in_view)
0045             : view(in_view) {}
0046 
0047         SingleView& view;
0048     };
0049 }}
0050 
0051 #ifdef _MSC_VER
0052 #  pragma warning(pop)
0053 #endif
0054 
0055 #ifdef BOOST_FUSION_WORKAROUND_FOR_LWG_2408
0056 namespace std
0057 {
0058     template <typename SingleView, typename Pos>
0059     struct iterator_traits< ::boost::fusion::single_view_iterator<SingleView, Pos> >
0060     { };
0061 }
0062 #endif
0063 
0064 #endif
0065 
0066