[#BloombergLP-balber-BerEncoderOptions-manipulateAttribute-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerEncoderOptions.adoc[BerEncoderOptions]::manipulateAttribute
:relfileprefix: ../../../
:mrdocs:

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

== Synopsis

Declared in `&lt;balber&lowbar;berencoderoptions&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);
----

== Return Value

value returned by `manipulator`, or &hyphen;1 if `id` is not found

== Parameters

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


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