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);

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

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

Return Value

  • result of invoking accessor on the held value

  • result of invoking accessor

Parameters

Name

Description

object

nullable value whose contents are accessed

accessor

functor applied to the held value

Created with MrDocs