BloombergLP::bdlma::SequentialAllocator::SequentialAllocator

Create a sequential allocator whose initial buffer has the specified initialSize and growth strategy.

Synopsis

Declared in <bdlma_sequentialallocator.h>

SequentialAllocator(
    bsls::Types::size_type initialSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bslma::Allocator* basicAllocator = 0);

Parameters

NameDescription
initialSizeinitial size, in bytes, of the internal buffer
growthStrategystrategy controlling growth of internal buffers
basicAllocatormemory allocator; null uses the default