File indexing completed on 2025-01-18 09:41:56
0001
0002 #ifndef BOOST_MPL_JOINT_VIEW_HPP_INCLUDED
0003 #define BOOST_MPL_JOINT_VIEW_HPP_INCLUDED
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #include <boost/mpl/aux_/joint_iter.hpp>
0018 #include <boost/mpl/plus.hpp>
0019 #include <boost/mpl/size_fwd.hpp>
0020 #include <boost/mpl/begin_end.hpp>
0021 #include <boost/mpl/aux_/na_spec.hpp>
0022
0023 namespace boost { namespace mpl {
0024
0025 namespace aux {
0026 struct joint_view_tag;
0027 }
0028
0029 template<>
0030 struct size_impl< aux::joint_view_tag >
0031 {
0032 template < typename JointView > struct apply
0033 : plus<
0034 size<typename JointView::sequence1_>
0035 , size<typename JointView::sequence2_>
0036 >
0037 {};
0038 };
0039
0040 template<
0041 typename BOOST_MPL_AUX_NA_PARAM(Sequence1_)
0042 , typename BOOST_MPL_AUX_NA_PARAM(Sequence2_)
0043 >
0044 struct joint_view
0045 {
0046 typedef typename mpl::begin<Sequence1_>::type first1_;
0047 typedef typename mpl::end<Sequence1_>::type last1_;
0048 typedef typename mpl::begin<Sequence2_>::type first2_;
0049 typedef typename mpl::end<Sequence2_>::type last2_;
0050
0051
0052 typedef Sequence1_ sequence1_;
0053 typedef Sequence2_ sequence2_;
0054
0055 typedef joint_view type;
0056 typedef aux::joint_view_tag tag;
0057 typedef joint_iter<first1_,last1_,first2_> begin;
0058 typedef joint_iter<last1_,last1_,last2_> end;
0059 };
0060
0061 BOOST_MPL_AUX_NA_SPEC(2, joint_view)
0062
0063 }}
0064
0065 #endif