BloombergLP::bdlma::SequentialAllocator::SequentialAllocator

Create a sequential allocator with growth limited to maxBufferSize and the specified growth and alignment strategies.

Synopsis

Declared in <bdlma_sequentialallocator.h>

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

Parameters

NameDescription
initialSizeinitial size, in bytes, of the internal buffer
maxBufferSizemaximum dynamically allocated buffer size in bytes
growthStrategystrategy controlling growth of internal buffers
alignmentStrategystrategy used to align allocated memory blocks
basicAllocatormemory allocator; null uses the default