BloombergLP::bdlat_NullableValueFunctions::bdlat_nullableValueAccessValue

Invoke accessor on the non-null value held by object.

Synopsis

Declared in <bdlat_nullablevaluefunctions.h>

template<
    class TYPE,
    class ACCESSOR>
int
bdlat_nullableValueAccessValue(
    bdlb::NullableAllocatedValue<TYPE> const& object,
    ACCESSOR& accessor);

Description

Default customization-point implementation of accessValue for bdlb::NullableAllocatedValue.

Return Value

result of invoking accessor on the held value

Parameters

NameDescription
objectnullable value whose contents are accessed
accessorfunctor applied to the held value