InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SystemAllocator< T > Class Template Reference

#include <SystemAllocator.h>

Public Types

typedef size_t size_type
 
typedef std::ptrdiff_t difference_type
 
typedef T * pointer
 
typedef const T * const_pointer
 
typedef T & reference
 
typedef const T & const_reference
 
typedef T value_type
 

Public Member Functions

pointer address (reference x) const
 
const_pointer address (const_reference x) const
 
pointer allocate (size_type n, const void *hint=nil)
 
void deallocate (pointer p, size_type)
 
size_type max_size () const
 
void construct (pointer p, const T &value)
 
void destroy (pointer p)
 
bool16 operator== (const SystemAllocator< T > &) const
 
bool16 operator!= (const SystemAllocator< T > &) const
 

Detailed Description

template<class T>
class SystemAllocator< T >

Summary: An STL compliant allocator that uses OS calls to allocate memory.