$extrastylesheet
#include <json/allocator.h>
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. | |
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. | |
SecureAllocator () | |
template<typename U > | |
SecureAllocator (const SecureAllocator< U > &) |
Definition at line 16 of file allocator.h.
Json::SecureAllocator< T >::SecureAllocator | ( | ) | [inline] |
Definition at line 78 of file allocator.h.
Json::SecureAllocator< T >::SecureAllocator | ( | const SecureAllocator< U > & | ) | [inline] |
Definition at line 79 of file allocator.h.
pointer Json::SecureAllocator< T >::address | ( | reference | x | ) | const [inline] |
Definition at line 61 of file allocator.h.
const_pointer Json::SecureAllocator< T >::address | ( | const_reference | x | ) | const [inline] |
Definition at line 65 of file allocator.h.
pointer Json::SecureAllocator< T >::allocate | ( | size_type | n | ) | [inline] |
Allocate memory for N items using the standard allocator.
Definition at line 30 of file allocator.h.
void Json::SecureAllocator< T >::construct | ( | pointer | p, |
Args &&... | args | ||
) | [inline] |
Construct an item in-place at pointer P.
Definition at line 52 of file allocator.h.
void Json::SecureAllocator< T >::deallocate | ( | volatile pointer | p, |
size_type | n | ||
) | [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.
void Json::SecureAllocator< T >::destroy | ( | pointer | p | ) | [inline] |
Destroy an item in-place at pointer P.
Definition at line 72 of file allocator.h.
size_type Json::SecureAllocator< T >::max_size | ( | ) | const [inline] |
Definition at line 57 of file allocator.h.