cptr::basic_ptr::from_bits

The pointer whose bits() are bits. Only pass bits() of a pointer into the same cage: bits from another cage (or another cage type with the same T) decode to an unrelated address in this one, and nothing checks it.

Synopsis

Declared in <cptr/ptr.hpp>

constexpr
static
basic_ptr
from_bits(uint32_t bits) noexcept;

Return Value

A nullable pointer to a T inside Cage, stored in 4 bytes. Use it as ptr<T> or strict_ptr<T>, declared below.