Create a sequential allocator using the specified external buffer, maximum buffer size, and alignment strategy.

Synopsis

Declared in <bslma_sequentialallocator.h>

SequentialAllocator(
    char* buffer,
    int bufferSize,
    int maxBufferSize,
    BufferAllocator::AlignmentStrategy strategy,
    Allocator* basicAllocator = 0);

Parameters

Name

Description

buffer

The external buffer used for initial allocations.

bufferSize

The size (in bytes) of buffer.

maxBufferSize

The maximum internal buffer size (in bytes).

strategy

The alignment strategy used for allocations.

basicAllocator

The allocator used to supply memory.

Created with MrDocs