Allocator that clears the memory it manages before returning it to the system.
Declared in <support/allocators/zeroafterfree.h>
template<typename T>
struct zero_after_free_allocator;
| Name | Description |
|---|---|
value_type | The type of object this allocator allocates. |
| Name | Description |
|---|---|
zero_after_free_allocator [constructor] | Constructors |
allocate | Allocates uninitialized memory for n objects using std::allocator. |
deallocate | Clears and returns memory previously obtained from allocate. |
| Name | Description |
|---|---|
zero_after_free_allocator<byte> | Allocator that clears the memory it manages before returning it to the system. |
| Name | Description |
|---|---|
operator== | Compares two allocators for equality; they are always equal since the allocator is stateless. |
| Name | Description |
|---|---|
operator== | Compares two allocators for equality; they are always equal since the allocator is stateless. |