Create a memory pool with the specified growth strategy and maximum chunk size.
Declared in <bdlma_pool.h>
Pool(
bsls::Types::size_type blockSize,
bsls::BlockGrowth::Strategy growthStrategy,
int maxBlocksPerChunk,
bslma::Allocator* basicAllocator = 0);
| Name | Description |
|---|---|
| blockSize | size in bytes of each allocated memory block |
| growthStrategy | strategy controlling growth of internal chunks |
| maxBlocksPerChunk | maximum number of blocks per allocated chunk |
| basicAllocator | memory allocator; null uses the default |