9#include <aws/common/common.h>
24 template <
typename T>
class StlAllocator :
public std::allocator<T>
27 using Base = std::allocator<T>;
49 using RawPointer =
typename std::allocator_traits<std::allocator<T>>::pointer;
#define AWS_CRT_CPP_API
Definition: Exports.h:37
Definition: StlAllocator.h:25
void deallocate(RawPointer p, size_type)
Definition: StlAllocator.h:58
typename std::allocator_traits< std::allocator< T > >::pointer RawPointer
Definition: StlAllocator.h:49
RawPointer allocate(size_type n, const void *hint=nullptr)
Definition: StlAllocator.h:51
std::size_t size_type
Definition: StlAllocator.h:42
Allocator * m_allocator
Definition: StlAllocator.h:64
StlAllocator(Allocator *allocator) noexcept
Definition: StlAllocator.h:31
StlAllocator() noexcept
Definition: StlAllocator.h:29
StlAllocator(const StlAllocator< U > &a) noexcept
Definition: StlAllocator.h:35
~StlAllocator()
Definition: StlAllocator.h:40
std::allocator< T > Base
Definition: StlAllocator.h:27
StlAllocator(const StlAllocator< T > &a) noexcept
Definition: StlAllocator.h:33
aws_allocator Allocator
Definition: StlAllocator.h:17
AWS_CRT_CPP_API Allocator * g_allocator
Definition: Api.cpp:23
cJSON * n
Definition: cJSON.cpp:2560
cJSON * a
Definition: cJSON.cpp:2562
cJSON * p
Definition: cJSON.cpp:2561
Definition: StlAllocator.h:45
StlAllocator< U > other
Definition: StlAllocator.h:46