Extract the raw pointer from a pointer-like value.
Declared in <absl/memory/memory.h>
template<typename T>
decltype(std::addressof(*ptr))
RawPtr(T&& ptr);
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.
The underlying raw pointer, or nullptr if ptr is null.
| Name | Description |
|---|---|
| ptr | The pointer-like value to extract from. |