[#BloombergLP-balb-SequenceWithAnonymity-manipulateAttribute-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/SequenceWithAnonymity.adoc[SequenceWithAnonymity]::manipulateAttribute
:relfileprefix: ../../../
:mrdocs:

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

== Synopsis

Declared in `&lt;balb&lowbar;testmessages&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class MANIPULATOR&gt;
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&period; Return the value returned from the invocation of `manipulator` if `id` identifies an attribute of this class, and &hyphen;1 otherwise&period;

== Return Value

value returned from the invocation of `manipulator` if `id` identifies an attribute of this class, and &hyphen;1 otherwise

== Parameters

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


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