Create a buffered sequential allocator using the specified growth strategy for allocations from buffer.

Synopsis

Declared in <bdlma_bufferedsequentialallocator.h>

BufferedSequentialAllocator(
    char* buffer,
    bsls::Types::size_type size,
    bsls::BlockGrowth::Strategy growthStrategy,
    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

basicAllocator

memory allocator; null uses the default

Created with MrDocs