Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:49:44

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 #if !defined(FUSION_ITERATOR_RANGE_05062005_1224)
0008 #define FUSION_ITERATOR_RANGE_05062005_1224
0009 
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/support/detail/access.hpp>
0012 #include <boost/fusion/support/sequence_base.hpp>
0013 #include <boost/fusion/support/category_of.hpp>
0014 #include <boost/fusion/iterator/distance.hpp>
0015 #include <boost/fusion/iterator/mpl/convert_iterator.hpp>
0016 #include <boost/fusion/view/iterator_range/detail/begin_impl.hpp>
0017 #include <boost/fusion/view/iterator_range/detail/end_impl.hpp>
0018 #include <boost/fusion/view/iterator_range/detail/at_impl.hpp>
0019 #include <boost/fusion/view/iterator_range/detail/size_impl.hpp>
0020 #include <boost/fusion/view/iterator_range/detail/value_at_impl.hpp>
0021 #include <boost/fusion/view/iterator_range/detail/is_segmented_impl.hpp>
0022 #include <boost/fusion/view/iterator_range/detail/segments_impl.hpp>
0023 #include <boost/fusion/adapted/mpl/mpl_iterator.hpp>
0024 #include <boost/config.hpp>
0025 
0026 #if defined (BOOST_MSVC)
0027 #  pragma warning(push)
0028 #  pragma warning (disable: 4512) // assignment operator could not be generated.
0029 #endif
0030 
0031 namespace boost { namespace fusion
0032 {
0033     struct iterator_range_tag;
0034     struct fusion_sequence_tag;
0035 
0036     template <typename First, typename Last>
0037     struct iterator_range : sequence_base<iterator_range<First, Last> >
0038     {
0039         typedef typename convert_iterator<First>::type begin_type;
0040         typedef typename convert_iterator<Last>::type end_type;
0041         typedef iterator_range_tag fusion_tag;
0042         typedef fusion_sequence_tag tag; // this gets picked up by MPL
0043         typedef mpl::true_ is_view;
0044 
0045         typedef typename traits::category_of<begin_type>::type category;
0046 
0047         BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0048         iterator_range(First const& in_first, Last const& in_last)
0049             : first(convert_iterator<First>::call(in_first))
0050             , last(convert_iterator<Last>::call(in_last)) {}
0051 
0052         begin_type first;
0053         end_type last;
0054     };
0055 }}
0056 
0057 #if defined (BOOST_MSVC)
0058 #  pragma warning(pop)
0059 #endif
0060 
0061 #endif
0062 
0063