[#BloombergLP-bdlat_SequenceFunctions-manipulateAttribute-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_SequenceFunctions.adoc[bdlat&lowbar;SequenceFunctions]::manipulateAttribute
:relfileprefix: ../../
:mrdocs:

Invoke a manipulator on a sequence attribute identified by name&period;

== Synopsis

Declared in `&lt;bdlat&lowbar;sequencefunctions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE,
    class MANIPULATOR&gt;
int
manipulateAttribute(
    TYPE* object,
    MANIPULATOR& manipulator,
    char const* attributeName,
    int attributeNameLength);
----

== Description

Invoke the specified `manipulator` on the address of the (modifiable) attribute indicated by the specified `attributeName` and `attributeNameLength` of the specified `object`, supplying `manipulator` with the corresponding attribute information structure&period; The supplied `manipulator` must be a callable type that can be called as if it had the following signature&colon; &grave; template &lt;class t&lowbar;INFO&gt; int manipulator(ATTRIBUTE&lowbar;TYPE &ast;attribute, const t&lowbar;INFO&amp; info)&semi; &grave; Return non&hyphen;zero value if the attribute is not found, and the value returned from the invocation of `manipulator` otherwise&period;

== Return Value

non&hyphen;zero if the attribute is not found, and the value from `manipulator` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| sequence whose attribute is manipulated
| *manipulator*
| callable invoked with the attribute and its info
| *attributeName*
| name of the attribute to manipulate
| *attributeNameLength*
| length of `attributeName`
|===


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