#include <bdlb_nullablevalueref.h>
template<class TYPE>
class bdlb::ConstNullableValueRef< TYPE >
This class is a wrapper for either a bsl::optional or NullableAllocatedValue, and provides non-modifiable access to the wrapped object.
See bdlb_nullablevalueref
◆ value_type
value_type is an alias for the template parameter TYPE, and represents the type of the object managed by the wrapped nullable object.
◆ ~ConstNullableValueRef()
Destroy this object.
- Note
- Note that this destructor is generated by the compiler, and does not destruct the target.
◆ BSLS_DEPRECATE_FEATURE() [1/3]
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.
◆ BSLS_DEPRECATE_FEATURE() [2/3]
Return the value of the underlying object of a (template parameter) TYPE if this object is non-null, and the specified otherValue otherwise.
- Note
- Note that this method returns by value, so may be inefficient in some contexts.
◆ BSLS_DEPRECATE_FEATURE() [3/3]
Return an address providing non-modifiable access to the underlying object of a (template parameter) TYPE if this object is non-null, and 0 otherwise.
◆ operator UnspecifiedBool()
Simulation of explicit conversion to bool. Inlined to work around xlC but when out-of-line.
The documentation for this class was generated from the following file: