[#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_key, payload)` callable for each one. == Synopsis Declared in `<absl/status/status.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void ForEachPayload(xref:absl/FunctionRef-0e3.adoc[absl::FunctionRef<void(std::string_view, xref:absl/Cord.adoc[absl::Cord] const&)>] visitor) const; ---- == Description NOTE: The order of calls to `visitor()` is not specified and may change at any time. NOTE: Any mutation on the same 'absl::Status' object during visitation is forbidden and could result in undefined behavior. == Parameters [cols="1,4"] |=== | Name| Description | *visitor* | The callable invoked for each stored payload. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#