BloombergLP::bdlat_NullableValueFunctions::manipulateValue

Invoke the specified manipulator on the address of the value stored in the specified "nullable" object.

Synopsis

Declared in <bdlat_nullablevaluefunctions.h>

template<
    class TYPE,
    class MANIPULATOR>
int
manipulateValue(
    TYPE* object,
    MANIPULATOR& manipulator);

Description

The supplied manipulator must be a callable type that can be called as if it had the following signature: ` int manipulator(VALUE_TYPE *value); ` Return the value from the invocation of manipulator. The behavior is undefined unless object does not contain a null value.

Return Value

result of invoking manipulator

Parameters

NameDescription
object"nullable" object whose held value is manipulated
manipulatorfunctor applied to the address of the held value