cptr::ptr_with_payload::set

Replaces the pointer (null or in the cage), keeping the payload.

Synopsis

Declared in <cptr/pack.hpp>

void
set(T* p) noexcept;