21template <
typename Allocator>
 
   27    for (
size_t i = 0; i < 100; i++)
 
   33    for (
size_t i = 0; i < 100; i++)
 
   35    for (
size_t i = 100; i < 200; i++)
 
   41    for (
size_t i = 0; i < 150; i++)
 
 
   59    for (
size_t i = 1; i < 1000; i++) {
 
 
   66    if (
sizeof(
size_t) >= 8) {
 
 
   85    void* 
p = 
a.Malloc(100);
 
   86    void* q = 
a.Realloc(
p, 100, 200);
 
   90    for (
size_t j = 1; 
j < 32; 
j++) {
 
   94        for (
size_t i = 1; i < 1024; i++) {
 
   95            q = 
a.Realloc(
p, i, i + 1);
 
 
void TestAllocator(Allocator &a)
 
C-runtime library allocator.
 
Default memory allocator used by the parser and DOM.
 
Concept for allocating, resizing and freeing memory block.
 
#define RAPIDJSON_ALIGN(x)
Data alignment of the machine.
 
#define EXPECT_EQ(val1, val2)
 
#define EXPECT_TRUE(condition)
 
#define TEST(test_case_name, test_name)
 
#define EXPECT_LE(val1, val2)
 
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
 
#define RAPIDJSON_UINT64_C2(high32, low32)
Construct a 64-bit literal by a pair of 32-bit integer.
 
unsigned __int64 uint64_t