6#ifndef CPPTL_JSON_ALLOCATOR_H_INCLUDED
7#define CPPTL_JSON_ALLOCATOR_H_INCLUDED
31 return static_cast<pointer>(::operator
new(n *
sizeof(T)));
42 std::memset(p, 0, n *
sizeof(T));
52 ::new (
static_cast<void*
>(p)) T(std::forward<Args>(args)...);
75template <
typename T,
typename U>
80template <
typename T,
typename U>
size_type max_size() const
const_pointer address(const_reference x) const
pointer address(reference x) const
const T & const_reference
std::ptrdiff_t difference_type
void destroy(pointer p)
Destroy an item in-place at pointer P.
void deallocate(volatile pointer p, size_type n)
Release memory which was allocated for N items at pointer P.
pointer allocate(size_type n)
Allocate memory for N items using the standard allocator.
void construct(pointer p, Args &&... args)
Construct an item in-place at pointer P.
SecureAllocator(const SecureAllocator< U > &)
JSON (JavaScript Object Notation).
bool operator==(const SecureAllocator< T > &, const SecureAllocator< U > &)
bool operator!=(const SecureAllocator< T > &, const SecureAllocator< U > &)