RawPtr overloads
Synopses
Declared in <absl/memory/memory.h>
Extract the raw pointer from a null pointer.
std::nullptr_t
RawPtr(std::nullptr_t ptr);
Extract the raw pointer from a pointer‐like value.
template<typename T>
decltype(std::addressof(*ptr))
RawPtr(T&& ptr);
Return Value
-
nullptr. -
The underlying raw pointer, or
nullptrifptris null.
Parameters
Name |
Description |
ptr |
The null pointer. |
Created with MrDocs