Create a sequential allocator using an internal buffer of the specified initialSize and alignment strategy.

Synopsis

Declared in <bslma_sequentialallocator.h>

SequentialAllocator(
    int initialSize,
    BufferAllocator::AlignmentStrategy strategy,
    Allocator* basicAllocator = 0);

Parameters

Name

Description

initialSize

The initial internal buffer size (in bytes).

strategy

The alignment strategy used for allocations.

basicAllocator

The allocator used to supply memory.

Created with MrDocs