This class provides direct access to the system‐supplied (native) global std::malloc and std::free.
Synopsis
Declared in <bslma_mallocfreeallocator.h>
class MallocFreeAllocator
: public Allocator
Description
A static method is provided for obtaining a unique, process wide object of this class, which is valid from the time the method is called until after the program (not just main) exits.
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 |
|
Create an allocator that uses |
|
Destroy this allocator. |
Return a newly allocated block of memory of the specified |
|
Return the memory block at the specified |
|
|
|
|
|
Static Member Functions
Name |
Description |
Return a reference to a valid object of this class. |
|
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