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

Synopsis

Declared in <bdlma_sequentialallocator.h>

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

Parameters

Name

Description

initialSize

initial size, in bytes, of the internal buffer

maxBufferSize

maximum dynamically allocated buffer size in bytes

growthStrategy

strategy controlling growth of internal buffers

basicAllocator

memory allocator; null uses the default

Created with MrDocs