MCPcopy Create free account
hub / github.com/BowenFu/matchit.cpp / main

Function main

sample/optionalLift.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23int32_t main()
24{
25 auto const func = [](auto &&e)
26 { return e * e; };
27 auto const result = optionalLift(func)(std::make_optional(2));
28 std::cout << *result << std::endl;
29 return 0;
30}

Callers

nothing calls this directly

Calls 1

optionalLiftFunction · 0.85

Tested by

no test coverage detected