cptr::basic_ptr::pointer_to

For std::pointer_traits, so ptr can serve as an allocator's pointer type.

Synopsis

Declared in <cptr/ptr.hpp>

template<class U = T>
requires (!std::is_void_v<U>)
static
basic_ptr
pointer_to(U& r) 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.