sl@0: sl@0: #ifndef BOOST_MPL_ZIP_VIEW_HPP_INCLUDED sl@0: #define BOOST_MPL_ZIP_VIEW_HPP_INCLUDED sl@0: sl@0: // Copyright Aleksey Gurtovoy 2000-2002 sl@0: // Copyright David Abrahams 2000-2002 sl@0: // sl@0: // Distributed under the Boost Software License, Version 1.0. sl@0: // (See accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: // sl@0: // See http://www.boost.org/libs/mpl for documentation. sl@0: sl@0: // $Source: /cvsroot/boost/boost/boost/mpl/zip_view.hpp,v $ sl@0: // $Date: 2004/09/02 15:40:42 $ sl@0: // $Revision: 1.3 $ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: namespace boost { namespace mpl { sl@0: sl@0: template< typename IteratorSeq > sl@0: struct zip_iterator sl@0: { sl@0: typedef forward_iterator_tag category; sl@0: typedef typename transform1< sl@0: IteratorSeq sl@0: , deref<_1> sl@0: >::type type; sl@0: sl@0: typedef zip_iterator< sl@0: typename transform1< sl@0: IteratorSeq sl@0: , next<_1> sl@0: >::type sl@0: > next; sl@0: }; sl@0: sl@0: template< sl@0: typename BOOST_MPL_AUX_NA_PARAM(Sequences) sl@0: > sl@0: struct zip_view sl@0: { sl@0: private: sl@0: typedef typename transform1< Sequences, begin<_1> >::type first_ones_; sl@0: typedef typename transform1< Sequences, end<_1> >::type last_ones_; sl@0: sl@0: public: sl@0: typedef nested_begin_end_tag tag; sl@0: typedef zip_iterator begin; sl@0: typedef zip_iterator end; sl@0: }; sl@0: sl@0: BOOST_MPL_AUX_NA_SPEC(1, zip_view) sl@0: sl@0: }} sl@0: sl@0: #endif // BOOST_MPL_ZIP_VIEW_HPP_INCLUDED