Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BehaviorTree/BehaviorTree.CPP
/ value_or
Function
value_or
include/behaviortree_cpp/contrib/expected.hpp:2277–2282 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2275
)
2276
>
2277
value_type value_or( U && v ) const &
2278
{
2279
return has_value()
2280
? contained.value()
2281
: static_cast<T>( std::forward<U>( v ) );
2282
}
2283
2284
template< typename U
2285
nsel_REQUIRES_T(
Callers
nothing calls this directly
Calls
3
has_value
Function · 0.85
move
Function · 0.85
value
Method · 0.45
Tested by
no test coverage detected