cptr::basic_ptr::operator->

Member access: a single add. Dereferencing null is undefined, so this skips the null check: on a null ptr it returns the cage base, not nullptr, and an access through it faults because the cage's first span is never committed. Use get() when the pointer may be null.

Synopsis

Declared in <cptr/ptr.hpp>

T*
operator->() const noexcept;