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

`manipulateAttribute` overloads

== Synopses

Declared in `&lt;balber&lowbar;berencoderoptions&period;h&gt;`

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename t&lowbar;MANIPULATOR&gt;
int
xref:BloombergLP/balber/BerEncoderOptions/manipulateAttribute-08.adoc[manipulateAttribute](
    t&lowbar;MANIPULATOR& manipulator,
    int id);
----

[.small]#xref:BloombergLP/balber/BerEncoderOptions/manipulateAttribute-08.adoc[_» more&period;&period;&period;_]#

Invoke the specified `manipulator` on the modifiable attribute indicated by the specified `name` of the specified `nameLength`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename t&lowbar;MANIPULATOR&gt;
int
xref:BloombergLP/balber/BerEncoderOptions/manipulateAttribute-04e.adoc[manipulateAttribute](
    t&lowbar;MANIPULATOR& manipulator,
    char const* name,
    int nameLength);
----

[.small]#xref:BloombergLP/balber/BerEncoderOptions/manipulateAttribute-04e.adoc[_» more&period;&period;&period;_]#

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *manipulator*
| functor invoked on the selected attribute
| *id*
| attribute identifier to manipulate
| *name*
| attribute name to manipulate
| *nameLength*
| length of `name` in bytes
|===


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