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

`fmt&colon;&colon;format` support for the pointer&hyphen;like returned by `get&lowbar;exception&lt;Ex&gt;()`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Ex&gt;
struct formatter&lt;xref:folly/rich_ptr_to_underlying_error.adoc[folly::rich&lowbar;ptr&lowbar;to&lowbar;underlying&lowbar;error&lt;Ex&gt;]&gt;;
----

== Description

Format pointer&hyphen;like returned by `get&lowbar;exception&lt;Ex&gt;(rich&lowbar;exception&lowbar;ptr)`&period; Crucially, this displays `epitaph()` stacks when available&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:fmt/formatter-047/format.adoc[`format`] 
| Formats `p` (and any epitaph stack) into the output of `ctx`&period;
| xref:fmt/formatter-047/parse.adoc[`parse`] 
| Parses the format spec, delegating to `Ex`&apos;s formatter when applicable&period;
|===



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