Invoke the specified accessor on the non‐modifiable value stored in the specified "nullable" object.
Synopsis
Declared in <bdlat_nullablevaluefunctions.h>
template<
class TYPE,
class ACCESSOR>
int
accessValue(
TYPE const& object,
ACCESSOR& accessor);
Description
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.
Return Value
result of invoking accessor
Parameters
Name |
Description |
object |
"nullable" object whose held value is accessed |
accessor |
functor applied to the held value |
Created with MrDocs