webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Types | Public Member Functions | List of all members
pool_allocator< T > Class Template Reference

#include <PoolAlloc.h>

Classes

struct  rebind
 

Public Types

typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef Tpointer
 
typedef const Tconst_pointer
 
typedef Treference
 
typedef const Tconst_reference
 
typedef T value_type
 

Public Member Functions

pointer address (reference x) const
 
const_pointer address (const_reference x) const
 
 pool_allocator ()
 
template<class Other >
 pool_allocator (const pool_allocator< Other > &p)
 
template<class Other >
pool_allocator< T > & operator= (const pool_allocator< Other > &p)
 
pointer allocate (size_type n)
 
pointer allocate (size_type n, const void *)
 
void deallocate (pointer, size_type)
 
void construct (pointer p, const T &val)
 
void destroy (pointer p)
 
bool operator== (const pool_allocator &rhs) const
 
bool operator!= (const pool_allocator &rhs) const
 
size_type max_size () const
 
size_type max_size (int size) const
 
TPoolAllocatorgetAllocator () const
 

Member Typedef Documentation

◆ const_pointer

template<class T>
typedef const T* pool_allocator< T >::const_pointer

◆ const_reference

template<class T>
typedef const T& pool_allocator< T >::const_reference

◆ difference_type

template<class T>
typedef ptrdiff_t pool_allocator< T >::difference_type

◆ pointer

template<class T>
typedef T* pool_allocator< T >::pointer

◆ reference

template<class T>
typedef T& pool_allocator< T >::reference

◆ size_type

template<class T>
typedef size_t pool_allocator< T >::size_type

◆ value_type

template<class T>
typedef T pool_allocator< T >::value_type

Constructor & Destructor Documentation

◆ pool_allocator() [1/2]

template<class T>
pool_allocator< T >::pool_allocator ( )
inline

◆ pool_allocator() [2/2]

template<class T>
template<class Other >
pool_allocator< T >::pool_allocator ( const pool_allocator< Other > &  p)
inline

Member Function Documentation

◆ address() [1/2]

template<class T>
pointer pool_allocator< T >::address ( reference  x) const
inline

◆ address() [2/2]

template<class T>
const_pointer pool_allocator< T >::address ( const_reference  x) const
inline

◆ allocate() [1/2]

template<class T>
pointer pool_allocator< T >::allocate ( size_type  n)
inline

◆ allocate() [2/2]

template<class T>
pointer pool_allocator< T >::allocate ( size_type  n,
const void  
)
inline

◆ construct()

template<class T>
void pool_allocator< T >::construct ( pointer  p,
const T val 
)
inline

◆ deallocate()

template<class T>
void pool_allocator< T >::deallocate ( pointer  ,
size_type   
)
inline

◆ destroy()

template<class T>
void pool_allocator< T >::destroy ( pointer  p)
inline

◆ getAllocator()

template<class T>
TPoolAllocator& pool_allocator< T >::getAllocator ( ) const
inline

◆ max_size() [1/2]

template<class T>
size_type pool_allocator< T >::max_size ( ) const
inline

◆ max_size() [2/2]

template<class T>
size_type pool_allocator< T >::max_size ( int  size) const
inline

◆ operator!=()

template<class T>
bool pool_allocator< T >::operator!= ( const pool_allocator< T > &  rhs) const
inline

◆ operator=()

template<class T>
template<class Other >
pool_allocator<T>& pool_allocator< T >::operator= ( const pool_allocator< Other > &  p)
inline

◆ operator==()

template<class T>
bool pool_allocator< T >::operator== ( const pool_allocator< T > &  rhs) const
inline

The documentation for this class was generated from the following file: