]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/set/laws.cpp
1 // Copyright Louis Dionne 2013-2017
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/set.hpp>
6 #include <boost/hana/tuple.hpp>
8 #include <laws/base.hpp>
9 #include <laws/comparable.hpp>
10 #include <laws/foldable.hpp>
11 #include <laws/searchable.hpp>
12 namespace hana
= boost::hana
;
13 using hana::test::ct_eq
;
17 auto eqs
= hana::make_tuple(
19 hana::make_set(ct_eq
<0>{}),
20 hana::make_set(ct_eq
<0>{}, ct_eq
<1>{}),
21 hana::make_set(ct_eq
<1>{}, ct_eq
<0>{}),
22 hana::make_set(ct_eq
<0>{}, ct_eq
<1>{}, ct_eq
<2>{})
25 auto keys
= hana::make_tuple(
30 hana::test::TestComparable
<hana::set_tag
>{eqs
};
31 hana::test::TestSearchable
<hana::set_tag
>{eqs
, keys
};
32 hana::test::TestFoldable
<hana::set_tag
>{eqs
};