BloombergLP::baljsn::EncoderOptions::manipulateAttribute

manipulateAttribute overloads

Synopses

Declared in <baljsn_encoderoptions.h>

Invoke manipulator on the modifiable attribute indicated by id.

template<class MANIPULATOR>
int
manipulateAttribute(
    MANIPULATOR& manipulator,
    int id);
» more...

Invoke manipulator on the modifiable attribute indicated by name.

template<class MANIPULATOR>
int
manipulateAttribute(
    MANIPULATOR& manipulator,
    char const* name,
    int nameLength);
» more...

Return Value

  • value returned by manipulator, or -1 if id is not found
  • value returned by manipulator, or -1 if name is not found

Parameters

NameDescription
manipulatorfunctor invoked on the matching attribute
idattribute id
nameattribute name
nameLengthlength of name