Returns the stored value, or a default when in the error state.
Declared in <folly/Expected.h>
Returns the stored value, or a default when in the error state.
template<class U>
Value
value_or(U&& dflt) const &;
» more...
Returns the stored value, or a default when in the error state.
template<class U>
Value
value_or(U&& dflt) &&;
» more...
dflt.dflt.| Name | Description |
|---|---|
| dflt | The default returned when no value is present. |