cptr::mapped_cage::try_allocate

Returns nullptr when the cage is full, no file is open, or align is above 64 KiB (the span size).

Synopsis

Declared in <cptr/mapped_cage.hpp>

static
void*
try_allocate(
    std::size_t bytes,
    std::size_t align = alignof(
                                                   std::max_align_t)) noexcept;