BloombergLP::bslma::SequentialAllocator::SequentialAllocator

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

Synopsis

Declared in <bslma_sequentialallocator.h>

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

Parameters

NameDescription
bufferThe external buffer used for initial allocations.
bufferSizeThe size (in bytes) of buffer.
strategyThe alignment strategy used for allocations.
basicAllocatorThe allocator used to supply memory.