BloombergLP::bdlat_NullableValueFunctions::bdlat_nullableValueAccessValue

bdlat_nullableValueAccessValue overloads

Synopses

Declared in <bdlat_nullablevaluefunctions.h>

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

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

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

template<
    class TYPE,
    class ACCESSOR>
int
bdlat_nullableValueAccessValue(
    bdlb::NullableValue<TYPE> const& object,
    ACCESSOR& accessor);
» more...

Return Value

  • result of invoking accessor on the held value
  • result of invoking accessor

Parameters

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