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