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

Function main

test/optional/representation.cpp:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11struct Foo { };
12
13int main() {
14 auto just = hana::just(Foo{});
15 static_assert(std::is_same<decltype(just), hana::optional<Foo>>{}, "");
16
17 auto nothing = hana::nothing;
18 static_assert(std::is_same<decltype(nothing), hana::optional<>>{}, "");
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected