Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ObEngine/ObEngine
/ map_or
Method
map_or
extlibs/sol3/include/sol/sol.hpp:4342–4344 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4340
/// \group map_or
4341
template <class F, class U>
4342
U map_or(F&& f, U&& u) & {
4343
return has_value() ? detail::invoke(std::forward<F>(f), **this) : std::forward<U>(u);
4344
}
4345
4346
/// \group map_or
4347
template <class F, class U>
Callers
nothing calls this directly
Calls
2
has_value
Function · 0.85
invoke
Function · 0.85
Tested by
no test coverage detected