[#absl-Status-ForEachPayload]
= xref:absl.adoc[absl]::xref:absl/Status.adoc[Status]::ForEachPayload
:relfileprefix: ../../
:mrdocs:

Iterates over the stored payloads and calls the `visitor(type&lowbar;key, payload)` callable for each one&period;

== Synopsis

Declared in `&lt;absl&sol;status&sol;status&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
ForEachPayload(xref:absl/FunctionRef-0e3.adoc[absl::FunctionRef&lt;void(std::string&lowbar;view, xref:absl/Cord.adoc[absl::Cord] const&)&gt;] visitor) const;
----

== Description

NOTE&colon; The order of calls to `visitor()` is not specified and may change at any time&period;

NOTE&colon; Any mutation on the same &apos;absl&colon;&colon;Status&apos; object during visitation is forbidden and could result in undefined behavior&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *visitor*
| The callable invoked for each stored payload&period;
|===


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