Allocates a block of bytes. If possible the freelist is used, otherwise allocation is forwarded to ::operator new().
Declared in <support/allocators/pool.h>
void*
Allocate(
std::size_t bytes,
std::size_t alignment);
Pointer to the allocated block of memory.
| Name | Description |
|---|---|
| bytes | Number of bytes to allocate. |
| alignment | Required alignment in bytes for the returned block. |