| JsonCpp project page | JsonCpp home page |
#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 14 of file allocator.h.
| Json::SecureAllocator< T >::SecureAllocator | ( | ) | [inline] |
Definition at line 76 of file allocator.h.
| Json::SecureAllocator< T >::SecureAllocator | ( | const SecureAllocator< U > & | ) | [inline] |
Definition at line 77 of file allocator.h.
| pointer Json::SecureAllocator< T >::address | ( | reference | x | ) | const [inline] |
Definition at line 59 of file allocator.h.
| const_pointer Json::SecureAllocator< T >::address | ( | const_reference | x | ) | const [inline] |
Definition at line 63 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 28 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 50 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 40 of file allocator.h.
| void Json::SecureAllocator< T >::destroy | ( | pointer | p | ) | [inline] |
Destroy an item in-place at pointer P.
Definition at line 70 of file allocator.h.
| size_type Json::SecureAllocator< T >::max_size | ( | ) | const [inline] |
Definition at line 55 of file allocator.h.