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

Invoke a manipulator on each attribute of a sequence&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
manipulateAttributes(
    TYPE* object,
    MANIPULATOR& manipulator);
----

== Description

Invoke the specified `manipulator` sequentially on the address of each (modifiable) attribute of the specified `object`, supplying `manipulator` with the corresponding attribute information structure until such invocation returns non&hyphen;zero value&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 the value from the last invocation of `manipulator` (i&period;e&period;, the invocation that terminated the sequence)&period;

== Return Value

value from the last invocation of `manipulator`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| sequence whose attributes are manipulated
| *manipulator*
| callable invoked with each attribute and its info
|===


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