BloombergLP::bslma::SequentialPool::SequentialPool

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

Synopsis

Declared in <bslma_sequentialpool.h>

SequentialPool(
    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.