Chris@16: Chris@16: #ifndef BOOST_MPL_JOINT_VIEW_HPP_INCLUDED Chris@16: #define BOOST_MPL_JOINT_VIEW_HPP_INCLUDED Chris@16: Chris@16: // Copyright Aleksey Gurtovoy 2000-2004 Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. Chris@16: // (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: // See http://www.boost.org/libs/mpl for documentation. Chris@16: Chris@101: // $Id$ Chris@101: // $Date$ Chris@101: // $Revision$ Chris@16: Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: namespace boost { namespace mpl { Chris@16: Chris@16: namespace aux { Chris@16: struct joint_view_tag; Chris@16: } Chris@16: Chris@16: template<> Chris@16: struct size_impl< aux::joint_view_tag > Chris@16: { Chris@16: template < typename JointView > struct apply Chris@16: : plus< Chris@16: size Chris@16: , size Chris@16: > Chris@16: {}; Chris@16: }; Chris@16: Chris@16: template< Chris@16: typename BOOST_MPL_AUX_NA_PARAM(Sequence1_) Chris@16: , typename BOOST_MPL_AUX_NA_PARAM(Sequence2_) Chris@16: > Chris@16: struct joint_view Chris@16: { Chris@16: typedef typename mpl::begin::type first1_; Chris@16: typedef typename mpl::end::type last1_; Chris@16: typedef typename mpl::begin::type first2_; Chris@16: typedef typename mpl::end::type last2_; Chris@16: Chris@16: // agurt, 25/may/03: for the 'size_traits' implementation above Chris@16: typedef Sequence1_ sequence1_; Chris@16: typedef Sequence2_ sequence2_; Chris@16: Chris@16: typedef joint_view type; Chris@16: typedef aux::joint_view_tag tag; Chris@16: typedef joint_iter begin; Chris@16: typedef joint_iter end; Chris@16: }; Chris@16: Chris@16: BOOST_MPL_AUX_NA_SPEC(2, joint_view) Chris@16: Chris@16: }} Chris@16: Chris@16: #endif // BOOST_MPL_JOINT_VIEW_HPP_INCLUDED