ADTF
3.18.2
|
Classes | |
struct | rebind |
Public Member Functions | |
pointer | allocate (size_type n) |
Allocate memory for N items using the standard allocator. | |
void | deallocate (volatile pointer p, size_type n) |
Release memory which was allocated for N items at pointer P. More... | |
template<typename... Args> | |
void | construct (pointer p, Args &&... args) |
Construct an item in-place at pointer P. | |
size_type | max_size () const |
pointer | address (reference x) const |
const_pointer | address (const_reference x) const |
void | destroy (pointer p) |
Destroy an item in-place at pointer P. | |
template<typename U > | |
SecureAllocator (const SecureAllocator< U > &) | |
Definition at line 16 of file allocator.h.
|
inline |
Release memory which was allocated for N items at pointer P.
The memory block is filled with zeroes before being released. The pointer argument is tagged as "volatile" to prevent the compiler optimizing out this critical step.
Definition at line 42 of file allocator.h.