value_or overloads
Declared in <folly/Optional.h>
Return a copy of the value if set, or a given default if not. methodset Getters
template<class U>
constexpr
Value
value_or(U&& dflt) const &;
» more...
Return the value if set, or a given default if not. methodset Getters
template<class U>
constexpr
Value
value_or(U&& dflt) &&;
» more...
The contained value if present, otherwise dflt.
| Name | Description |
|---|---|
| dflt | The default value to return when empty. |