cptr::allocator::allocate

Memory for n T in the cage, uninitialised. Throws std::bad_array_new_length if n exceeds max_size(), and std::bad_alloc when the cage is full.

Synopsis

Declared in <cptr/allocator.hpp>

T*
allocate(std::size_t n);