cptr::cage::allocate

Allocate memory inside the cage. Throws std::bad_alloc when the cage is full or cannot be reserved.

Synopsis

Declared in <cptr/cage.hpp>

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