Constructors
Synopses
Declared in <bslma_sequentialallocator.h>
Create a sequential allocator using an internal buffer.
explicit
SequentialAllocator(Allocator* basicAllocator = 0);
Create a sequential allocator using an internal buffer and the specified alignment strategy.
explicit
SequentialAllocator(
BufferAllocator::AlignmentStrategy strategy,
Allocator* basicAllocator = 0);
Create a sequential allocator using an internal buffer of the specified initialSize.
explicit
SequentialAllocator(
int initialSize,
Allocator* basicAllocator = 0);
Create a sequential allocator using an internal buffer of the specified initialSize and alignment strategy.
SequentialAllocator(
int initialSize,
BufferAllocator::AlignmentStrategy strategy,
Allocator* basicAllocator = 0);
Create a sequential allocator using an internal buffer with a maximum buffer size.
SequentialAllocator(
int initialSize,
int maxBufferSize,
Allocator* basicAllocator = 0);
Create a sequential allocator using the specified external buffer.
SequentialAllocator(
char* buffer,
int bufferSize,
Allocator* basicAllocator = 0);
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);
Create a sequential allocator using the specified external buffer and alignment strategy.
SequentialAllocator(
char* buffer,
int bufferSize,
BufferAllocator::AlignmentStrategy strategy,
Allocator* basicAllocator = 0);
Create a sequential allocator using the specified external buffer with a maximum buffer size.
SequentialAllocator(
char* buffer,
int bufferSize,
int maxBufferSize,
Allocator* basicAllocator = 0);
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);
Parameters
Name |
Description |
basicAllocator |
The allocator used to supply memory. |
strategy |
The alignment strategy used for allocations. |
initialSize |
The initial internal buffer size (in bytes). |
maxBufferSize |
The maximum internal buffer size (in bytes). |
buffer |
The external buffer used for initial allocations. |
bufferSize |
The size (in bytes) of |
Created with MrDocs