absl::RawPtr

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);
» more...

Extract the raw pointer from a pointer-like value.

template<typename T>
decltype(std::addressof(*ptr))
RawPtr(T&& ptr);
» more...

Return Value

  • nullptr.
  • The underlying raw pointer, or nullptr if ptr is null.

Parameters

NameDescription
ptrThe null pointer.