cptr::nonnull_ptr::nonnull_ptr

Compress p, which must be in the cage and must not be null (checked like the cage check: in debug builds, or always with CPTR_CHECKED).

Synopsis

Declared in <cptr/ptr.hpp>

nonnull_ptr(T* p) noexcept;

Parameters

NameDescription
pThe object to construct from