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

Function main

test/optional/make.cpp:15–36  ·  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::make<hana::optional_tag>(),
18 hana::nothing
19 ));
20
21 BOOST_HANA_CONSTANT_CHECK(hana::equal(
22 hana::make<hana::optional_tag>(ct_eq<3>{}),
23 hana::just(ct_eq<3>{})
24 ));
25
26 // Check that make_optional == make<optional_tag>
27 BOOST_HANA_CONSTANT_CHECK(hana::equal(
28 hana::make_optional(),
29 hana::make<hana::optional_tag>()
30 ));
31
32 BOOST_HANA_CONSTANT_CHECK(hana::equal(
33 hana::make_optional(ct_eq<3>{}),
34 hana::make<hana::optional_tag>(ct_eq<3>{})
35 ));
36}

Callers

nothing calls this directly

Calls 1

equalClass · 0.50

Tested by

no test coverage detected