[#BloombergLP-baljsn-EncoderTestSequenceWithUntagged10-manipulateAttribute-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncoderTestSequenceWithUntagged10.adoc[EncoderTestSequenceWithUntagged10]::manipulateAttribute
:relfileprefix: ../../../
:mrdocs:

Invoke `manipulator` on the modifiable attribute indicated by `id`&period;

== Synopsis

Declared in `&lt;baljsn&lowbar;encoder&lowbar;testtypes&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename t&lowbar;MANIPULATOR&gt;
int
manipulateAttribute(
    t&lowbar;MANIPULATOR& manipulator,
    int id);
----

== Description

Invoke the specified &apos;manipulator&apos; on the address of the (modifiable) attribute indicated by the specified &apos;id&apos;, supplying &apos;manipulator&apos; with the corresponding attribute information structure&period; Return the value returned from the invocation of &apos;manipulator&apos; if &apos;id&apos; identifies an attribute of this class, and &hyphen;1 otherwise&period;

== Return Value

the value returned from the invocation of `manipulator`, or a non&hyphen;zero value on failure

== Parameters

[cols="1,4"]
|===
| Name| Description
| *manipulator*
| functor invoked on the matching attribute
| *id*
| attribute identifier
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
