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

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

== Synopsis

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

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

== Description

Extracts the raw pointer from a pointer&hyphen;like value `ptr`&period; `absl&colon;&colon;RawPtr` is useful within templates that need to handle a complement of raw pointers, `std&colon;&colon;nullptr&lowbar;t`, and smart pointers&period;

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ptr*
| The pointer&hyphen;like value to extract from&period;
|===


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