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

Function main

test/optional/operator_arrow.cpp:18–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16};
17
18int main() {
19 auto lvalue = hana::just(object{});
20 ct_eq<3>& ref = lvalue->member;
21 BOOST_HANA_CONSTANT_CHECK(hana::equal(
22 ref,
23 ct_eq<3>{}
24 ));
25
26 auto const const_lvalue = hana::just(object{});
27 ct_eq<3> const& const_ref = const_lvalue->member;
28 BOOST_HANA_CONSTANT_CHECK(hana::equal(
29 const_ref,
30 ct_eq<3>{}
31 ));
32
33 BOOST_HANA_CONSTANT_CHECK(hana::equal(
34 hana::just(object{})->member,
35 ct_eq<3>{}
36 ));
37}

Callers

nothing calls this directly

Calls 1

equalClass · 0.50

Tested by

no test coverage detected