2 #ifndef BOOST_MPL_ZIP_VIEW_HPP_INCLUDED
\r
3 #define BOOST_MPL_ZIP_VIEW_HPP_INCLUDED
\r
5 // Copyright Aleksey Gurtovoy 2000-2002
\r
6 // Copyright David Abrahams 2000-2002
\r
8 // Distributed under the Boost Software License, Version 1.0.
\r
9 // (See accompanying file LICENSE_1_0.txt or copy at
\r
10 // http://www.boost.org/LICENSE_1_0.txt)
\r
12 // See http://www.boost.org/libs/mpl for documentation.
\r
14 // $Id: zip_view.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
\r
15 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
\r
16 // $Revision: 49267 $
\r
18 #include <boost/mpl/transform.hpp>
\r
19 #include <boost/mpl/begin_end.hpp>
\r
20 #include <boost/mpl/iterator_tags.hpp>
\r
21 #include <boost/mpl/next.hpp>
\r
22 #include <boost/mpl/lambda.hpp>
\r
23 #include <boost/mpl/deref.hpp>
\r
24 #include <boost/mpl/aux_/na_spec.hpp>
\r
26 namespace boost { namespace mpl {
\r
28 template< typename IteratorSeq >
\r
31 typedef forward_iterator_tag category;
\r
32 typedef typename transform1<
\r
37 typedef zip_iterator<
\r
38 typename transform1<
\r
46 typename BOOST_MPL_AUX_NA_PARAM(Sequences)
\r
51 typedef typename transform1< Sequences, mpl::begin<_1> >::type first_ones_;
\r
52 typedef typename transform1< Sequences, mpl::end<_1> >::type last_ones_;
\r
55 typedef nested_begin_end_tag tag;
\r
56 typedef zip_iterator<first_ones_> begin;
\r
57 typedef zip_iterator<last_ones_> end;
\r
60 BOOST_MPL_AUX_NA_SPEC(1, zip_view)
\r
64 #endif // BOOST_MPL_ZIP_VIEW_HPP_INCLUDED
\r