BloombergLP::bdlar::SimpleTypeRef::manipulate

Invoke the specified manipulator on the value held by this object with the specified info.

Synopsis

Declared in <bdlar_simpletyperef.h>

template<
    class t_MANIPULATOR,
    class t_INFO>
int
manipulate(
    t_MANIPULATOR& manipulator,
    t_INFO const& info) const;

Description

The supplied manipulator must be an object callable with a value of any simple type as if it had the following signature: ` int manipulator(VALUE *value, const t_INFO& info); ` Return the value from the invocation of manipulator.

Return Value

value from the invocation of manipulator

Parameters

NameDescription
manipulatorcallable invoked on the held value
infoadditional information passed to manipulator