cptr::fancy_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/fancy_allocator.hpp>

pointer
allocate(std::size_t n);

Return Value

A compressed pointer to an element.