MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / map_or_else

Method map_or_else

extlibs/sol3/include/sol/sol.hpp:4376–4378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4374 /// \synopsis template <class F, class U>\nauto map_or_else(F &&f, U &&u) &;
4375 template <class F, class U>
4376 detail::invoke_result_t<U> map_or_else(F&& f, U&& u) & {
4377 return has_value() ? detail::invoke(std::forward<F>(f), **this) : std::forward<U>(u)();
4378 }
4379
4380 /// \group map_or_else
4381 /// \synopsis template <class F, class U>\nauto map_or_else(F &&f, U &&u)

Callers

nothing calls this directly

Calls 2

has_valueFunction · 0.85
invokeFunction · 0.85

Tested by

no test coverage detected