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

Function main

test/optional/value.cpp:14–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14int main() {
15 auto lvalue = hana::just(ct_eq<3>{});
16 ct_eq<3>& ref = lvalue.value();
17 BOOST_HANA_CONSTANT_CHECK(hana::equal(
18 ref,
19 ct_eq<3>{}
20 ));
21
22 auto const const_lvalue = hana::just(ct_eq<3>{});
23 ct_eq<3> const& const_ref = const_lvalue.value();
24 BOOST_HANA_CONSTANT_CHECK(hana::equal(
25 const_ref,
26 ct_eq<3>{}
27 ));
28
29 BOOST_HANA_CONSTANT_CHECK(hana::equal(
30 hana::just(ct_eq<3>{}).value(),
31 ct_eq<3>{}
32 ));
33}

Callers

nothing calls this directly

Calls 2

valueMethod · 0.80
equalClass · 0.50

Tested by

no test coverage detected