MCPcopy Create free account
hub / github.com/boostorg/hana / main

Function main

test/set/intersection.cpp:15–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15int main() {
16 BOOST_HANA_CONSTANT_CHECK(hana::equal(
17 hana::intersection(
18 hana::make_set(),
19 hana::make_set()
20 ),
21 hana::make_set()
22 ));
23 BOOST_HANA_CONSTANT_CHECK(hana::equal(
24 hana::intersection(
25 hana::make_set(ct_eq<0>{}),
26 hana::make_set()
27 ),
28 hana::make_set()
29 ));
30 BOOST_HANA_CONSTANT_CHECK(hana::equal(
31 hana::intersection(
32 hana::make_set(),
33 hana::make_set(ct_eq<0>{})
34 ),
35 hana::make_set()
36 ));
37
38 BOOST_HANA_CONSTANT_CHECK(hana::equal(
39 hana::intersection(
40 hana::make_set(ct_eq<0>{}),
41 hana::make_set(ct_eq<1>{})
42 ),
43 hana::make_set()
44 ));
45 BOOST_HANA_CONSTANT_CHECK(hana::equal(
46 hana::intersection(
47 hana::make_set(ct_eq<0>{}),
48 hana::make_set(ct_eq<0>{})
49 ),
50 hana::make_set(ct_eq<0>{})
51 ));
52
53 BOOST_HANA_CONSTANT_CHECK(hana::equal(
54 hana::intersection(
55 hana::make_set(ct_eq<0>{}, ct_eq<1>{}),
56 hana::make_set(ct_eq<2>{}, ct_eq<3>{})
57 ),
58 hana::make_set()
59 ));
60 BOOST_HANA_CONSTANT_CHECK(hana::equal(
61 hana::intersection(
62 hana::make_set(ct_eq<0>{}, ct_eq<1>{}),
63 hana::make_set(ct_eq<1>{}, ct_eq<2>{})
64 ),
65 hana::make_set(ct_eq<1>{})
66 ));
67 BOOST_HANA_CONSTANT_CHECK(hana::equal(
68 hana::intersection(
69 hana::make_set(ct_eq<0>{}, ct_eq<1>{}),
70 hana::make_set(ct_eq<1>{}, ct_eq<0>{})
71 ),
72 hana::make_set(ct_eq<0>{}, ct_eq<1>{})

Callers

nothing calls this directly

Calls 1

equalClass · 0.50

Tested by

no test coverage detected