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

Function main

test/optional/transform.cpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

transformClass · 0.85
equalClass · 0.50
fClass · 0.50

Tested by

no test coverage detected