[#fmt-ptr-06]
= xref:fmt.adoc[fmt]::ptr
:relfileprefix: ../
:mrdocs:

Converts `p` to `const void&ast;` for pointer formatting&period;

== Synopses

Declared in `&lt;fmt&sol;format&period;h&gt;`

Converts `p` to `const void&ast;` for pointer formatting&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
void const*
xref:fmt/ptr-01.adoc[ptr](T p);
----

[.small]#xref:fmt/ptr-01.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
void const*
xref:fmt/ptr-0b.adoc[ptr](std::shared&lowbar;ptr&lt;T&gt; const& p);
----

[.small]#xref:fmt/ptr-0b.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename Deleter&gt;
void const*
xref:fmt/ptr-0d.adoc[ptr](std::unique&lowbar;ptr&lt;T, Deleter&gt; const& p);
----

[.small]#xref:fmt/ptr-0d.adoc[_» more&period;&period;&period;_]#


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