Returns the held value, or a default when no value is present (rvalue, lifetime-bound overload).
Declared in <absl/status/statusor.h>
template<typename U>
requires internal_statusor::IsValueOrValid<T, U&&, true>::value
T
value_or(U&& default_value) &&;
The held value if present, otherwise default_value.
| Name | Description |
|---|---|
| default_value | The value returned when no held value is present. |