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