[#fmt-formatter-047-format]
= xref:fmt.adoc[fmt]::xref:fmt/formatter-047.adoc[formatter&lt;folly::rich&lowbar;ptr&lowbar;to&lowbar;underlying&lowbar;error&lt;Ex&gt;&gt;]::format
:relfileprefix: ../../
:mrdocs:

Formats `p` (and any epitaph stack) into the output of `ctx`&period;

== Synopsis

Declared in `&lt;folly&sol;result&sol;rich&lowbar;error&lowbar;base&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
format&lowbar;context::iterator
format(
    xref:folly/rich_ptr_to_underlying_error.adoc[folly::rich&lowbar;ptr&lowbar;to&lowbar;underlying&lowbar;error&lt;Ex&gt;] const& p,
    format&lowbar;context& ctx) const;
----

== Return Value

An iterator past the written output&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| The rich&hyphen;error pointer to format&period;
| *ctx*
| The format context to write into&period;
|===


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