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

Synopsis

Declared in <bdlma_sequentialallocator.h>

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

Parameters

Name

Description

initialSize

initial size, in bytes, of the internal buffer

growthStrategy

strategy controlling growth of internal buffers

alignmentStrategy

strategy used to align allocated memory blocks

basicAllocator

memory allocator; null uses the default

Created with MrDocs