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

Name

Description

object

nullable value whose contents are accessed

accessor

functor applied to the held value

Created with MrDocs