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

Function main

example/functional/overload.cpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23auto f = hana::overload(on_int, on_string);
24
25int main() {
26 // prints "matched int: 1"
27 BOOST_HANA_RUNTIME_CHECK(f(1) == 1);
28
29 // prints "matched std::string: abcdef"
30 BOOST_HANA_RUNTIME_CHECK(f("abcdef") == std::string{"abcdef"});
31}

Callers

nothing calls this directly

Calls 1

fClass · 0.50

Tested by

no test coverage detected