MCPcopy 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_valueFunction · 0.85
moveFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected