[#PoolResource-Allocate] = xref:PoolResource.adoc[PoolResource]::Allocate :relfileprefix: ../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void* Allocate( std::size_t bytes, std::size_t alignment); ---- == Return Value Pointer to the allocated block of memory. == Parameters [cols="1,4"] |=== | Name| Description | *bytes* | Number of bytes to allocate. | *alignment* | Required alignment in bytes for the returned block. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#