BloombergLP::bdlma::SequentialAllocator::SequentialAllocator

Constructors

Synopses

Declared in <bdlma_sequentialallocator.h>

Create a sequential allocator whose initial buffer has the specified initialSize.

explicit
SequentialAllocator(int initialSize);
» more...

Create a sequential allocator that allocates from dynamically allocated buffers.

explicit
SequentialAllocator(bslma::Allocator* basicAllocator = 0);
» more...

Create a sequential allocator using the specified alignment strategy.

explicit
SequentialAllocator(
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a sequential allocator using the specified growth strategy.

explicit
SequentialAllocator(
    bsls::BlockGrowth::Strategy growthStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a sequential allocator whose initial buffer has the specified initialSize.

explicit
SequentialAllocator(
    bsls::Types::size_type initialSize,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a sequential allocator using the specified growth and alignment strategies.

SequentialAllocator(
    bsls::BlockGrowth::Strategy growthStrategy,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a sequential allocator whose initial buffer has the specified initialSize and alignment strategy.

SequentialAllocator(
    bsls::Types::size_type initialSize,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a sequential allocator whose initial buffer has the specified initialSize and growth strategy.

SequentialAllocator(
    bsls::Types::size_type initialSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a sequential allocator with growth limited to maxBufferSize.

SequentialAllocator(
    bsls::Types::size_type initialSize,
    bsls::Types::size_type maxBufferSize,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a sequential allocator whose initial buffer has the specified initialSize, growth strategy, and alignment strategy.

SequentialAllocator(
    bsls::Types::size_type initialSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

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

SequentialAllocator(
    bsls::Types::size_type initialSize,
    bsls::Types::size_type maxBufferSize,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

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

SequentialAllocator(
    bsls::Types::size_type initialSize,
    bsls::Types::size_type maxBufferSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

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

SequentialAllocator(
    bsls::Types::size_type initialSize,
    bsls::Types::size_type maxBufferSize,
    bsls::BlockGrowth::Strategy growthStrategy,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
initialSizeinitial size, in bytes, of the internal 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