BloombergLP::bdlma::BufferedSequentialAllocator::BufferedSequentialAllocator

Constructors

Synopses

Declared in <bdlma_bufferedsequentialallocator.h>

Create a buffered sequential allocator backed by the specified buffer.

BufferedSequentialAllocator(
    char* buffer,
    bsls::Types::size_type size,
    bslma::Allocator* basicAllocator = 0);
» more...

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

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

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

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

Create a buffered sequential allocator with growth limited to maxBufferSize.

BufferedSequentialAllocator(
    char* buffer,
    bsls::Types::size_type size,
    bsls::Types::size_type maxBufferSize,
    bslma::Allocator* basicAllocator = 0);
» more...

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

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

Create a buffered sequential allocator with growth limited to maxBufferSize and the specified alignment strategy.

BufferedSequentialAllocator(
    char* buffer,
    bsls::Types::size_type size,
    bsls::Types::size_type maxBufferSize,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a buffered sequential allocator with growth limited to maxBufferSize and the specified growth strategy.

BufferedSequentialAllocator(
    char* buffer,
    bsls::Types::size_type size,
    bsls::Types::size_type maxBufferSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a buffered sequential allocator with growth limited to maxBufferSize and the specified growth and alignment strategies.

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

Parameters

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