BloombergLP::bdlma::BufferedSequentialAllocator::BufferedSequentialAllocator

Create a buffered sequential allocator using the specified growth and alignment strategies for allocations from buffer.

Synopsis

Declared in <bdlma_bufferedsequentialallocator.h>

BufferedSequentialAllocator(
    char* buffer,
    bsls::Types::size_type size,
    bsls::BlockGrowth::Strategy growthStrategy,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);

Parameters

NameDescription
bufferexternal buffer from which to allocate
sizesize in bytes of buffer
growthStrategystrategy controlling growth of internal buffers
alignmentStrategystrategy used to align allocated memory blocks
basicAllocatormemory allocator; null uses the default