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