Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TombEngine/TombEngine
/ map_or
Method
map_or
Libs/sol/sol.hpp:4878–4880 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4876
/// \group map_or
4877
template <class F, class U>
4878
U map_or(F&& f, U&& u) & {
4879
return has_value() ? detail::invoke(std::forward<F>(f), **this) : std::forward<U>(u);
4880
}
4881
4882
/// \group map_or
4883
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