[#absl-RawPtr-0f]
= xref:absl.adoc[absl]::RawPtr
:relfileprefix: ../
:mrdocs:

`RawPtr` overloads

== Synopses

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

Extract the raw pointer from a null pointer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::nullptr&lowbar;t
xref:absl/RawPtr-0c.adoc[RawPtr](std::nullptr&lowbar;t ptr);
----

[.small]#xref:absl/RawPtr-0c.adoc[_» more&period;&period;&period;_]#

Extract the raw pointer from a pointer&hyphen;like value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
decltype(std&colon;&colon;addressof(&ast;ptr))
xref:absl/RawPtr-03.adoc[RawPtr](T&& ptr);
----

[.small]#xref:absl/RawPtr-03.adoc[_» more&period;&period;&period;_]#

== Return Value

* `nullptr`&period;
* The underlying raw pointer, or `nullptr` if `ptr` is null&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ptr*
| The null pointer&period;
|===


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