MCPcopy Create free account
hub / github.com/ThePhD/sol2 / map_or

Method map_or

include/sol/optional_implementation.hpp:948–950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946 /// \group map_or
947 template <class F, class U>
948 U map_or(F&& f, U&& u) & {
949 return has_value() ? detail::invoke(std::forward<F>(f), **this) : std::forward<U>(u);
950 }
951
952 /// \group map_or
953 template <class F, class U>

Callers

nothing calls this directly

Calls 2

has_valueFunction · 0.85
invokeFunction · 0.85

Tested by

no test coverage detected