BloombergLP::bslma::SequentialPool::SequentialPool

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

Synopsis

Declared in <bslma_sequentialpool.h>

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

Parameters

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