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

Function main

example/optional/value.cpp:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14int main() {
15 static_assert(hana::just('x').value() == 'x', "");
16 BOOST_HANA_CONSTANT_CHECK(*hana::just(hana::type_c<int>) == hana::type_c<int>);
17 BOOST_HANA_RUNTIME_CHECK(hana::just(std::string{"abcd"})->size() == 4);
18
19 // hana::nothing.value(); // compile-time error
20}

Callers

nothing calls this directly

Calls 2

valueMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected