BloombergLP::bdlar::bdlat_nullableValueAccessValue

Invoke the specified accessor on the non-null value held by the specified ref. Return the value from the invocation of accessor.

Synopsis

Declared in <bdlar_nullablevalueref.h>

template<class t_ACCESSOR>
int
bdlat_nullableValueAccessValue(
    NullableValueConstRef const& ref,
    t_ACCESSOR& accessor);

Return Value

value from the invocation of accessor

Parameters

NameDescription
refnullable-value reference to access
accessorcallable invoked on the non-null value