os/ossrv/ossrv_pub/boost_apis/boost/mpl/zip_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/zip_view.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,64 @@
     1.4 +
     1.5 +#ifndef BOOST_MPL_ZIP_VIEW_HPP_INCLUDED
     1.6 +#define BOOST_MPL_ZIP_VIEW_HPP_INCLUDED
     1.7 +
     1.8 +// Copyright Aleksey Gurtovoy 2000-2002
     1.9 +// Copyright David Abrahams 2000-2002
    1.10 +//
    1.11 +// Distributed under the Boost Software License, Version 1.0.
    1.12 +// (See accompanying file LICENSE_1_0.txt or copy at 
    1.13 +// http://www.boost.org/LICENSE_1_0.txt)
    1.14 +//
    1.15 +// See http://www.boost.org/libs/mpl for documentation.
    1.16 +
    1.17 +// $Source: /cvsroot/boost/boost/boost/mpl/zip_view.hpp,v $
    1.18 +// $Date: 2004/09/02 15:40:42 $
    1.19 +// $Revision: 1.3 $
    1.20 +
    1.21 +#include <boost/mpl/transform.hpp>
    1.22 +#include <boost/mpl/begin_end.hpp>
    1.23 +#include <boost/mpl/iterator_tags.hpp>
    1.24 +#include <boost/mpl/next.hpp>
    1.25 +#include <boost/mpl/lambda.hpp>
    1.26 +#include <boost/mpl/deref.hpp>
    1.27 +#include <boost/mpl/aux_/na_spec.hpp>
    1.28 +
    1.29 +namespace boost { namespace mpl {
    1.30 +
    1.31 +template< typename IteratorSeq >
    1.32 +struct zip_iterator
    1.33 +{
    1.34 +    typedef forward_iterator_tag category;
    1.35 +    typedef typename transform1<
    1.36 +          IteratorSeq
    1.37 +        , deref<_1>
    1.38 +        >::type type;
    1.39 +
    1.40 +    typedef zip_iterator<
    1.41 +          typename transform1<
    1.42 +                IteratorSeq
    1.43 +              , next<_1>
    1.44 +            >::type
    1.45 +        > next;
    1.46 +};
    1.47 +
    1.48 +template<
    1.49 +      typename BOOST_MPL_AUX_NA_PARAM(Sequences)
    1.50 +    >
    1.51 +struct zip_view
    1.52 +{
    1.53 + private:
    1.54 +    typedef typename transform1< Sequences, begin<_1> >::type first_ones_;
    1.55 +    typedef typename transform1< Sequences, end<_1> >::type last_ones_;
    1.56 +    
    1.57 + public:
    1.58 +    typedef nested_begin_end_tag tag;
    1.59 +    typedef zip_iterator<first_ones_> begin;
    1.60 +    typedef zip_iterator<last_ones_> end;
    1.61 +};
    1.62 +
    1.63 +BOOST_MPL_AUX_NA_SPEC(1, zip_view)
    1.64 +
    1.65 +}}
    1.66 +
    1.67 +#endif // BOOST_MPL_ZIP_VIEW_HPP_INCLUDED