[#BloombergLP-baljsn-DecoderOptions-manipulateAttribute-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/DecoderOptions.adoc[DecoderOptions]::manipulateAttribute :relfileprefix: ../../../ :mrdocs: `manipulateAttribute` overloads == Synopses Declared in `<baljsn_decoderoptions.h>` Invoke `manipulator` on the modifiable attribute indicated by `id`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename t_MANIPULATOR> int xref:BloombergLP/baljsn/DecoderOptions/manipulateAttribute-01.adoc[manipulateAttribute]( t_MANIPULATOR& manipulator, int id); ---- [.small]#xref:BloombergLP/baljsn/DecoderOptions/manipulateAttribute-01.adoc[_» more..._]# Invoke `manipulator` on the modifiable attribute indicated by name. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename t_MANIPULATOR> int xref:BloombergLP/baljsn/DecoderOptions/manipulateAttribute-03.adoc[manipulateAttribute]( t_MANIPULATOR& manipulator, char const* name, int nameLength); ---- [.small]#xref:BloombergLP/baljsn/DecoderOptions/manipulateAttribute-03.adoc[_» 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 [cols="1,4"] |=== | Name| Description | *manipulator* | functor invoked on the matching attribute | *id* | attribute id | *name* | attribute name | *nameLength* | length of `name` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#