BloombergLP::bdlma::Pool::Pool

Create a memory pool with the specified growth strategy and maximum chunk size.

Synopsis

Declared in <bdlma_pool.h>

Pool(
    bsls::Types::size_type blockSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    int maxBlocksPerChunk,
    bslma::Allocator* basicAllocator = 0);

Parameters

NameDescription
blockSizesize in bytes of each allocated memory block
growthStrategystrategy controlling growth of internal chunks
maxBlocksPerChunkmaximum number of blocks per allocated chunk
basicAllocatormemory allocator; null uses the default