Return the address of the contained object, or address if null.
Synopsis
Declared in <bdlb_nullablevalue.h>
TYPE const*
addressOr(TYPE const* address) const;
Description
Return an address providing non‐modifiable access to the underlying object of a (template parameter) TYPE if this object is non‐null, and the specified address otherwise.
Return Value
address of the underlying object if non‐null, and address otherwise
Parameters
Name |
Description |
address |
fallback address returned when this object is null |
Created with MrDocs