[#BloombergLP-baljsn-EncoderOptions-manipulateAttribute-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncoderOptions.adoc[EncoderOptions]::manipulateAttribute :relfileprefix: ../../../ :mrdocs: Invoke `manipulator` on the modifiable attribute indicated by `id`. == Synopsis Declared in `<baljsn_encoderoptions.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class MANIPULATOR> int manipulateAttribute( MANIPULATOR& manipulator, int id); ---- == Description Invoke the specified `manipulator` on the address of the (modifiable) attribute indicated by the specified `id`, supplying `manipulator` with the corresponding attribute information structure. Return the value returned from the invocation of `manipulator` if `id` identifies an attribute of this class, and ‐1 otherwise. == Return Value value returned by `manipulator`, or ‐1 if `id` is not found == Parameters [cols="1,4"] |=== | Name| Description | *manipulator* | functor invoked on the matching attribute | *id* | attribute id |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#