Invoke the specified accessor on the non-modifiable value stored in the specified "nullable" object.
Declared in <bdlat_nullablevaluefunctions.h>
template<
class TYPE,
class ACCESSOR>
int
accessValue(
TYPE const& object,
ACCESSOR& accessor);
The supplied accessor must be a callable type that can be called as if it had the following signature: ` int accessor(const VALUE_TYPE& value); ` Return the value from the invocation of accessor. The behavior is undefined unless object does not contain a null value.
result of invoking accessor
| Name | Description |
|---|---|
| object | "nullable" object whose held value is accessed |
| accessor | functor applied to the held value |