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