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

Synopsis

Declared in <bdlma_bufferedsequentialpool.h>

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

Parameters

Name

Description

buffer

external buffer from which to allocate

size

size in bytes of buffer

growthStrategy

strategy controlling growth of internal buffers

alignmentStrategy

strategy used to align allocated memory blocks

basicAllocator

memory allocator; null uses the default

Created with MrDocs