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

Method map_or_else

Libs/sol/sol.hpp:4912–4914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4910 /// \synopsis template <class F, class U>\nauto map_or_else(F &&f, U &&u) &;
4911 template <class F, class U>
4912 detail::invoke_result_t<U> map_or_else(F&& f, U&& u) & {
4913 return has_value() ? detail::invoke(std::forward<F>(f), **this) : std::forward<U>(u)();
4914 }
4915
4916 /// \group map_or_else
4917 /// \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