Protocol for allocators that support releasing all allocated memory.
Synopsis
Declared in <bslma_managedallocator.h>
class ManagedAllocator
: public Allocator
Description
This protocol class extends bslma::Allocator, providing the ability to release all memory currently allocated through the protocol back to the memory supplier of the derived concrete allocator object.
Base Classes
Name |
Description |
Pure abstract protocol for clients and suppliers of raw 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 |
Return a newly allocated block of memory of at least |
|
Return the memory block at |
|
|
|
|
|
|
Release all memory currently allocated through this allocator. |
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 |
Derived Classes
Name |
Description |
This class implements the |
Created with MrDocs