]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/ext/boost/tuple/iterable.cpp
1 // Copyright Louis Dionne 2013-2016
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
5 #include <boost/hana/ext/boost/tuple.hpp>
7 #include <boost/hana/tuple.hpp>
9 #include <laws/base.hpp>
10 #include <laws/foldable.hpp>
11 #include <laws/iterable.hpp>
13 #include <boost/tuple/tuple.hpp>
14 namespace hana
= boost::hana
;
18 using eq
= hana::test::ct_eq
<i
>;
21 //////////////////////////////////////////////////////////////////////////
22 // Setup for the laws below
23 //////////////////////////////////////////////////////////////////////////
24 auto eq_tuples
= hana::make_tuple(
26 , ::boost::make_tuple(eq
<0>{})
27 , ::boost::make_tuple(eq
<0>{}, eq
<1>{})
28 , ::boost::make_tuple(eq
<0>{}, eq
<1>{}, eq
<2>{})
31 //////////////////////////////////////////////////////////////////////////
33 //////////////////////////////////////////////////////////////////////////
34 hana::test::TestFoldable
<hana::ext::boost::tuple_tag
>{eq_tuples
};
35 hana::test::TestIterable
<hana::ext::boost::tuple_tag
>{eq_tuples
};