Chris@16: Chris@16: #ifndef BOOST_MPL_ZIP_VIEW_HPP_INCLUDED Chris@16: #define BOOST_MPL_ZIP_VIEW_HPP_INCLUDED Chris@16: Chris@16: // Copyright Aleksey Gurtovoy 2000-2010 Chris@16: // Copyright David Abrahams 2000-2002 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@16: // $Id: zip_view.hpp 61591 2010-04-26 21:31:09Z agurtovoy $ Chris@16: // $Date: 2010-04-26 14:31:09 -0700 (Mon, 26 Apr 2010) $ Chris@16: // $Revision: 61591 $ Chris@16: Chris@16: #include Chris@16: #include 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: template< typename IteratorSeq > Chris@16: struct zip_iterator Chris@16: { Chris@16: typedef forward_iterator_tag category; Chris@16: typedef typename transform1< Chris@16: IteratorSeq Chris@16: , deref<_1> Chris@16: >::type type; Chris@16: Chris@16: typedef zip_iterator< Chris@16: typename transform1< Chris@16: IteratorSeq Chris@16: , mpl::next<_1> Chris@16: >::type Chris@16: > next; Chris@16: }; Chris@16: Chris@16: template< Chris@16: typename BOOST_MPL_AUX_NA_PARAM(Sequences) Chris@16: > Chris@16: struct zip_view Chris@16: { Chris@16: private: Chris@16: typedef typename transform1< Sequences, mpl::begin<_1> >::type first_ones_; Chris@16: typedef typename transform1< Sequences, mpl::end<_1> >::type last_ones_; Chris@16: Chris@16: public: Chris@16: typedef nested_begin_end_tag tag; Chris@16: typedef zip_view type; Chris@16: typedef zip_iterator begin; Chris@16: typedef zip_iterator end; Chris@16: }; Chris@16: Chris@16: BOOST_MPL_AUX_NA_SPEC(1, zip_view) Chris@16: Chris@16: }} Chris@16: Chris@16: #endif // BOOST_MPL_ZIP_VIEW_HPP_INCLUDED