os/ossrv/ossrv_pub/boost_apis/boost/mpl/joint_view.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/mpl/joint_view.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,65 @@
     1.4 +
     1.5 +#ifndef BOOST_MPL_JOINT_VIEW_HPP_INCLUDED
     1.6 +#define BOOST_MPL_JOINT_VIEW_HPP_INCLUDED
     1.7 +
     1.8 +// Copyright Aleksey Gurtovoy 2000-2004
     1.9 +//
    1.10 +// Distributed under the Boost Software License, Version 1.0. 
    1.11 +// (See accompanying file LICENSE_1_0.txt or copy at 
    1.12 +// http://www.boost.org/LICENSE_1_0.txt)
    1.13 +//
    1.14 +// See http://www.boost.org/libs/mpl for documentation.
    1.15 +
    1.16 +// $Source: /cvsroot/boost/boost/boost/mpl/joint_view.hpp,v $
    1.17 +// $Date: 2004/10/02 19:08:57 $
    1.18 +// $Revision: 1.8 $
    1.19 +
    1.20 +#include <boost/mpl/aux_/joint_iter.hpp>
    1.21 +#include <boost/mpl/plus.hpp>
    1.22 +#include <boost/mpl/size_fwd.hpp>
    1.23 +#include <boost/mpl/begin_end.hpp>
    1.24 +#include <boost/mpl/aux_/na_spec.hpp>
    1.25 +
    1.26 +namespace boost { namespace mpl {
    1.27 +
    1.28 +namespace aux {
    1.29 +struct joint_view_tag;
    1.30 +}
    1.31 +
    1.32 +template<>
    1.33 +struct size_impl< aux::joint_view_tag >
    1.34 +{
    1.35 +    template < typename JointView > struct apply
    1.36 +      : plus<
    1.37 +            size<typename JointView::sequence1_>
    1.38 +          , size<typename JointView::sequence2_>
    1.39 +          >
    1.40 +    {};
    1.41 +};
    1.42 +
    1.43 +template<
    1.44 +      typename BOOST_MPL_AUX_NA_PARAM(Sequence1_)
    1.45 +    , typename BOOST_MPL_AUX_NA_PARAM(Sequence2_)
    1.46 +    >
    1.47 +struct joint_view
    1.48 +{
    1.49 +    typedef typename mpl::begin<Sequence1_>::type   first1_;
    1.50 +    typedef typename mpl::end<Sequence1_>::type     last1_;
    1.51 +    typedef typename mpl::begin<Sequence2_>::type   first2_;
    1.52 +    typedef typename mpl::end<Sequence2_>::type     last2_;
    1.53 +
    1.54 +    // agurt, 25/may/03: for the 'size_traits' implementation above
    1.55 +    typedef Sequence1_ sequence1_;
    1.56 +    typedef Sequence2_ sequence2_;
    1.57 +
    1.58 +    typedef joint_view type;
    1.59 +    typedef aux::joint_view_tag tag;
    1.60 +    typedef joint_iter<first1_,last1_,first2_>  begin;
    1.61 +    typedef joint_iter<last1_,last1_,last2_>    end;
    1.62 +};
    1.63 +
    1.64 +BOOST_MPL_AUX_NA_SPEC(2, joint_view)
    1.65 +
    1.66 +}}
    1.67 +
    1.68 +#endif // BOOST_MPL_JOINT_VIEW_HPP_INCLUDED