This protocol class extends bslma::Allocator for allocators with the ability to release all memory currently allocated through the protocol back to the memory supplier of the derived concrete allocator object.
Synopsis
Declared in <bdlma_managedallocator.h>
class ManagedAllocator
: public bslma::Allocator
Base Classes
Name |
Description |
This protocol class provides a pure abstract interface and contract for clients and suppliers of raw memory. If the requested memory cannot be returned, the contract requires that an |
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 the specified |
|
Return the memory block at the specified |
|
|
|
|
|
|
Release all memory currently allocated through this allocator. The effect of using a pointer after this call that was obtained from this allocator before this call is undefined. |
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 |
Derived Classes
Name |
Description |
This class implements the |
|
This class implements the |
|
This class implements the |
|
This class implements the |
|
This class defines a concrete "test" allocator mechanism that implements the |
Created with MrDocs