This class implements the ManagedAllocator protocol to provide a fast allocator of arbitrarily‐sized blocks of memory.
Synopsis
Declared in <bslma_sequentialallocator.h>
class SequentialAllocator
: public ManagedAllocator
Description
Both the release method and the destructor atomically delete all memory managed by this allocator; the deallocate method, however, has no effect for this class.
Base Classes
Name |
Description |
Protocol for allocators that support releasing all allocated memory. |
Type Aliases
Name |
Description |
Alias for an unsigned integral type capable of representing the number of bytes in this platform's virtual address space. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this sequential allocator and release all associated memory. |
|
|
|
|
This method has no effect for this allocator. |
|
|
|
|
|
|
|
|
Release all memory currently allocated through this allocator. |
|
Reserve memory for at least the specified |
Reduce the amount of memory allocated at the specified |
Static Member Functions
Name |
Description |
Throw |
Protected Member Functions
Name |
Description |
|
Return a newly allocated block of at least |
|
Return the memory block at |
|
Return whether this allocator can exchange memory with |
Created with MrDocs