]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/set/intersection.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/assert.hpp>
6 #include <boost/hana/equal.hpp>
7 #include <boost/hana/intersection.hpp>
8 #include <boost/hana/set.hpp>
10 #include <laws/base.hpp>
11 namespace hana
= boost::hana
;
12 using hana::test::ct_eq
;
16 BOOST_HANA_CONSTANT_CHECK(hana::equal(
23 BOOST_HANA_CONSTANT_CHECK(hana::equal(
25 hana::make_set(ct_eq
<0>{}),
30 BOOST_HANA_CONSTANT_CHECK(hana::equal(
33 hana::make_set(ct_eq
<0>{})
38 BOOST_HANA_CONSTANT_CHECK(hana::equal(
40 hana::make_set(ct_eq
<0>{}),
41 hana::make_set(ct_eq
<1>{})
45 BOOST_HANA_CONSTANT_CHECK(hana::equal(
47 hana::make_set(ct_eq
<0>{}),
48 hana::make_set(ct_eq
<0>{})
50 hana::make_set(ct_eq
<0>{})
53 BOOST_HANA_CONSTANT_CHECK(hana::equal(
55 hana::make_set(ct_eq
<0>{}, ct_eq
<1>{}),
56 hana::make_set(ct_eq
<2>{}, ct_eq
<3>{})
60 BOOST_HANA_CONSTANT_CHECK(hana::equal(
62 hana::make_set(ct_eq
<0>{}, ct_eq
<1>{}),
63 hana::make_set(ct_eq
<1>{}, ct_eq
<2>{})
65 hana::make_set(ct_eq
<1>{})
67 BOOST_HANA_CONSTANT_CHECK(hana::equal(
69 hana::make_set(ct_eq
<0>{}, ct_eq
<1>{}),
70 hana::make_set(ct_eq
<1>{}, ct_eq
<0>{})
72 hana::make_set(ct_eq
<0>{}, ct_eq
<1>{})
75 BOOST_HANA_CONSTANT_CHECK(hana::equal(
77 hana::make_set(ct_eq
<0>{}, ct_eq
<1>{}, ct_eq
<2>{}, ct_eq
<3>{}),
78 hana::make_set(ct_eq
<1>{}, ct_eq
<0>{}, ct_eq
<4>{})
80 hana::make_set(ct_eq
<0>{}, ct_eq
<1>{})
83 BOOST_HANA_CONSTANT_CHECK(hana::equal(
85 hana::make_set(ct_eq
<0>{}, ct_eq
<1>{}, ct_eq
<2>{}, ct_eq
<3>{}),
86 hana::make_set(ct_eq
<1>{}, ct_eq
<0>{}, ct_eq
<3>{}, ct_eq
<2>{}, ct_eq
<4>{})
88 hana::make_set(ct_eq
<0>{}, ct_eq
<1>{}, ct_eq
<2>{}, ct_eq
<3>{})