[#nlohmann-basic_json-0c-get_ptr-0d]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic&lowbar;json]::get&lowbar;ptr
:relfileprefix: ../../
:mrdocs:

get a pointer value (implicit)

== Synopsis

Declared in `&lt;nlohmann&sol;json&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename PointerType&gt;
requires std&colon;&colon;is&lowbar;pointer&lt;PointerType&gt;&colon;&colon;value&amp;&amp;
                   std&colon;&colon;is&lowbar;const&lt;typename std&colon;&colon;remove&lowbar;pointer&lt;PointerType&gt;&colon;&colon;type&gt;&colon;&colon;value
constexpr
decltype(std&colon;&colon;declval&lt;const basic&lowbar;json&lowbar;t&amp;&gt;()&period;get&lowbar;impl&lowbar;ptr(std&colon;&colon;declval&lt;PointerType&gt;()))
get&lowbar;ptr() const noexcept;
----

== Return Value

const pointer to the stored value if the JSON value&apos;s type matches the pointee type of _PointerType,_ `nullptr` otherwise


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