BloombergLP::bslma::SequentialAllocator::SequentialAllocator

Constructors

Synopses

Declared in <bslma_sequentialallocator.h>

Create a sequential allocator using an internal buffer.

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

Create a sequential allocator using an internal buffer and the specified alignment strategy.

explicit
SequentialAllocator(
    BufferAllocator::AlignmentStrategy strategy,
    Allocator* basicAllocator = 0);
» more...

Create a sequential allocator using an internal buffer of the specified initialSize.

explicit
SequentialAllocator(
    int initialSize,
    Allocator* basicAllocator = 0);
» more...

Create a sequential allocator using an internal buffer of the specified initialSize and alignment strategy.

SequentialAllocator(
    int initialSize,
    BufferAllocator::AlignmentStrategy strategy,
    Allocator* basicAllocator = 0);
» more...

Create a sequential allocator using an internal buffer with a maximum buffer size.

SequentialAllocator(
    int initialSize,
    int maxBufferSize,
    Allocator* basicAllocator = 0);
» more...

Create a sequential allocator using the specified external buffer.

SequentialAllocator(
    char* buffer,
    int bufferSize,
    Allocator* basicAllocator = 0);
» more...

Create a sequential allocator using an internal buffer with a maximum buffer size and the specified alignment strategy.

SequentialAllocator(
    int initialSize,
    int maxBufferSize,
    BufferAllocator::AlignmentStrategy strategy,
    Allocator* basicAllocator = 0);
» more...

Create a sequential allocator using the specified external buffer and alignment strategy.

SequentialAllocator(
    char* buffer,
    int bufferSize,
    BufferAllocator::AlignmentStrategy strategy,
    Allocator* basicAllocator = 0);
» more...

Create a sequential allocator using the specified external buffer with a maximum buffer size.

SequentialAllocator(
    char* buffer,
    int bufferSize,
    int maxBufferSize,
    Allocator* basicAllocator = 0);
» more...

Create a sequential allocator using the specified external buffer, maximum buffer size, and alignment strategy.

SequentialAllocator(
    char* buffer,
    int bufferSize,
    int maxBufferSize,
    BufferAllocator::AlignmentStrategy strategy,
    Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
basicAllocatorThe allocator used to supply memory.
strategyThe alignment strategy used for allocations.
initialSizeThe initial internal buffer size (in bytes).
maxBufferSizeThe maximum internal buffer size (in bytes).
bufferThe external buffer used for initial allocations.
bufferSizeThe size (in bytes) of buffer.