[#absl-RawPtr-03] = xref:absl.adoc[absl]::RawPtr :relfileprefix: ../ :mrdocs: Extract the raw pointer from a pointer‐like value. == Synopsis Declared in `<absl/memory/memory.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> decltype(std::addressof(*ptr)) RawPtr(T&& ptr); ---- == Description Extracts the raw pointer from a pointer‐like value `ptr`. `absl::RawPtr` is useful within templates that need to handle a complement of raw pointers, `std::nullptr_t`, and smart pointers. == Return Value The underlying raw pointer, or `nullptr` if `ptr` is null. == Parameters [cols="1,4"] |=== | Name| Description | *ptr* | The pointer‐like value to extract from. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#