Create a memory pool that uses the specified allocator.
Synopsis
Declared in <bslstl_simplepool.h>
explicit
SimplePool(ALLOCATOR const& allocator);
Description
Create a memory pool that returns blocks of contiguous memory of the size of the parameterized VALUE using the specified allocator to supply memory. The chunk size grows starting with at least sizeof(VALUE), doubling in size up to an implementation defined maximum number of blocks per chunk.
Parameters
Name |
Description |
allocator |
allocator used to supply memory for this pool |
Created with MrDocs