BloombergLP::bslma::SequentialAllocator::SequentialAllocator

Create a sequential allocator using an internal buffer with a maximum buffer size and the specified alignment strategy.

Synopsis

Declared in <bslma_sequentialallocator.h>

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

Parameters

NameDescription
initialSizeThe initial internal buffer size (in bytes).
maxBufferSizeThe maximum internal buffer size (in bytes).
strategyThe alignment strategy used for allocations.
basicAllocatorThe allocator used to supply memory.