File indexing completed on 2025-01-18 09:34:59
0001
0002
0003
0004
0005
0006
0007 #if !defined(FUSION_JOINT_VIEW_ITERATOR_07162005_0140)
0008 #define FUSION_JOINT_VIEW_ITERATOR_07162005_0140
0009
0010 #include <boost/fusion/support/config.hpp>
0011 #include <boost/fusion/support/iterator_base.hpp>
0012 #include <boost/fusion/iterator/equal_to.hpp>
0013 #include <boost/fusion/iterator/mpl/convert_iterator.hpp>
0014 #include <boost/fusion/adapted/mpl/mpl_iterator.hpp>
0015 #include <boost/fusion/view/joint_view/detail/deref_impl.hpp>
0016 #include <boost/fusion/view/joint_view/detail/next_impl.hpp>
0017 #include <boost/fusion/view/joint_view/detail/value_of_impl.hpp>
0018 #include <boost/fusion/view/joint_view/detail/deref_data_impl.hpp>
0019 #include <boost/fusion/view/joint_view/detail/value_of_data_impl.hpp>
0020 #include <boost/fusion/view/joint_view/detail/key_of_impl.hpp>
0021 #include <boost/static_assert.hpp>
0022
0023 #ifdef _MSC_VER
0024 # pragma warning(push)
0025 # pragma warning(disable: 4512)
0026 #endif
0027
0028 namespace boost { namespace fusion
0029 {
0030 struct joint_view_iterator_tag;
0031 struct forward_traversal_tag;
0032
0033 template <typename Category, typename First, typename Last, typename Concat>
0034 struct joint_view_iterator
0035 : iterator_base<joint_view_iterator<Category, First, Last, Concat> >
0036 {
0037 typedef convert_iterator<First> first_converter;
0038 typedef convert_iterator<Last> last_converter;
0039 typedef convert_iterator<Concat> concat_converter;
0040
0041 typedef typename first_converter::type first_type;
0042 typedef typename last_converter::type last_type;
0043 typedef typename concat_converter::type concat_type;
0044
0045 typedef joint_view_iterator_tag fusion_tag;
0046 typedef Category category;
0047 BOOST_STATIC_ASSERT((!result_of::equal_to<first_type, last_type>::value));
0048
0049 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0050 joint_view_iterator(First const& in_first, Concat const& in_concat)
0051 : first(first_converter::call(in_first))
0052 , concat(concat_converter::call(in_concat))
0053 {}
0054
0055 first_type first;
0056 concat_type concat;
0057 };
0058 }}
0059
0060 #ifdef _MSC_VER
0061 # pragma warning(pop)
0062 #endif
0063
0064 #ifdef BOOST_FUSION_WORKAROUND_FOR_LWG_2408
0065 namespace std
0066 {
0067 template <typename Category, typename First, typename Last, typename Concat>
0068 struct iterator_traits< ::boost::fusion::joint_view_iterator<Category, First, Last, Concat> >
0069 { };
0070 }
0071 #endif
0072
0073 #endif
0074
0075