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

Function main

test/optional/maybe.cpp:15–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13struct undefined { };
14
15int main() {
16 hana::test::_injection<0> f{};
17 hana::test::ct_eq<2> x{};
18
19 BOOST_HANA_CONSTANT_CHECK(hana::equal(
20 hana::maybe(x, undefined{}, hana::nothing),
21 x
22 ));
23
24 BOOST_HANA_CONSTANT_CHECK(hana::equal(
25 hana::maybe(undefined{}, f, hana::just(x)),
26 f(x)
27 ));
28}

Callers

nothing calls this directly

Calls 2

equalClass · 0.50
fClass · 0.50

Tested by

no test coverage detected