BloombergLP::bdlat_SequenceFunctions::manipulateAttribute

manipulateAttribute overloads

Synopses

Declared in <bdlat_sequencefunctions.h>

Invoke a manipulator on a sequence attribute identified by id.

template<
    class TYPE,
    class MANIPULATOR>
int
manipulateAttribute(
    TYPE* object,
    MANIPULATOR& manipulator,
    int attributeId);
» more...

Invoke a manipulator on a sequence attribute identified by name.

template<
    class TYPE,
    class MANIPULATOR>
int
manipulateAttribute(
    TYPE* object,
    MANIPULATOR& manipulator,
    char const* attributeName,
    int attributeNameLength);
» more...

Return Value

non-zero if the attribute is not found, and the value from manipulator otherwise

Parameters

NameDescription
objectsequence whose attribute is manipulated
manipulatorcallable invoked with the attribute and its info
attributeIdid of the attribute to manipulate
attributeNamename of the attribute to manipulate
attributeNameLengthlength of attributeName