Return the address of the value, or address if null.
Synopsis
Declared in <bdlb_nullablevalueref.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
true if the target contains a value, and false otherwise
Parameters
Name |
Description |
address |
fallback pointer when the target is null |
Created with MrDocs