]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mpl/test/zip_view.cpp
2 // Copyright Aleksey Gurtovoy 2002-2010
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
8 // See http://www.boost.org/libs/mpl for documentation.
14 #include <boost/mpl/zip_view.hpp>
16 #include <boost/mpl/transform_view.hpp>
17 #include <boost/mpl/filter_view.hpp>
18 #include <boost/mpl/range_c.hpp>
19 #include <boost/mpl/vector.hpp>
20 #include <boost/mpl/at.hpp>
21 #include <boost/mpl/equal.hpp>
22 #include <boost/mpl/equal_to.hpp>
23 #include <boost/mpl/unpack_args.hpp>
24 #include <boost/mpl/math/is_even.hpp>
26 #include <boost/mpl/aux_/test.hpp>
28 #include <boost/type_traits/is_same.hpp>
33 typedef transform_view
<
34 zip_view
< vector
< range_c
<int,0,10>, range_c
<int,10,20> > >
35 , unpack_args
< plus
<> >
40 , filter_view
< range_c
<int,10,30>, is_even
<_
> >
44 MPL_ASSERT(( boost::is_same
< zip_view
<vector
<> >, zip_view
<vector
<> >::type
> ));