Allocator that clears the memory it manages before returning it to the system.
Synopsis
Declared in <support/allocators/zeroafterfree.h>
template<>
struct zero_after_free_allocator<byte>;
Type Aliases
Name |
Description |
The type of object this allocator allocates. |
Member Functions
Name |
Description |
|
Constructors |
Allocates uninitialized memory for n objects using std::allocator. |
|
Clears and returns memory previously obtained from allocate. |
Friends
Name |
Description |
Compares two allocators for equality; they are always equal since the allocator is stateless. |
Created with MrDocs