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

Gets the payload of a status given its unique `type&lowbar;url` key, if present&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;absl::Cord&gt;
GetPayload(std::string&lowbar;view type&lowbar;url) const;
----

== Return Value

The payload if present, or `std&colon;&colon;nullopt` otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *type&lowbar;url*
| The unique key identifying the payload&period;
|===


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