cptr::ptr_with_payload::ptr_with_payload

Compresses p, which must be null or point into the cage.

Synopsis

Declared in <cptr/pack.hpp>

ptr_with_payload(
    T* p,
    uint32_t payload) noexcept;

Parameters

NameDescription
pThe object to construct from