cptr::basic_ptr::get

The raw pointer, or nullptr: an add plus the null check, which clang turns into a conditional move and GCC usually into a branch. Constant-evaluable when null, since that does not need the cage base.

Synopsis

Declared in <cptr/ptr.hpp>

constexpr
T*
get() const noexcept;