This class implements the ManagedAllocator protocol to provide a fast allocator of arbitrarily‐sized blocks of memory. 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.
Synopsis
Declared in <bslma_sequentialallocator.h>
class SequentialAllocator
: public ManagedAllocator
Base Classes
Name |
Description |
Provide a protocol for allocators with the ability to |
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 sufficient memory to satisfy allocation requests 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 memory of (at least) the specified positive |
|
Return the memory block at the specified |
|
Return |
Created with MrDocs