Return the contained value, or otherValue if this object is null.
Declared in <bdlb_nullableallocatedvalue.h>
TYPE
valueOr(TYPE const& otherValue) const;
Return the value of the underlying object of a (template parameter) TYPE if this object is non-null, and the specified otherValue otherwise. Note that this method returns by value, so may be inefficient in some contexts.
contained value, or otherValue if this object is null
| Name | Description |
|---|---|
| otherValue | fallback value if this object is null |