Blender  V3.3
Classes | Public Types | Public Member Functions | List of all members
MEM_Allocator< _Tp > Struct Template Reference

#include <MEM_Allocator.h>

Classes

struct  rebind
 

Public Types

typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef _Tp * pointer
 
typedef const _Tp * const_pointer
 
typedef _Tp & reference
 
typedef const _Tp & const_reference
 
typedef _Tp value_type
 

Public Member Functions

 MEM_Allocator () throw ()
 
 MEM_Allocator (const MEM_Allocator &) throw ()
 
template<typename _Tp1 >
 MEM_Allocator (const MEM_Allocator< _Tp1 >) throw ()
 
 ~MEM_Allocator () throw ()
 
pointer address (reference __x) const
 
const_pointer address (const_reference __x) const
 
_Tp * allocate (size_type __n, const void *=0)
 
void deallocate (pointer __p, size_type)
 
size_type max_size () const throw ()
 
void construct (pointer __p, const _Tp &__val)
 
void destroy (pointer __p)
 

Detailed Description

template<typename _Tp>
struct MEM_Allocator< _Tp >

Definition at line 13 of file MEM_Allocator.h.

Member Typedef Documentation

◆ const_pointer

template<typename _Tp >
typedef const _Tp* MEM_Allocator< _Tp >::const_pointer

Definition at line 17 of file MEM_Allocator.h.

◆ const_reference

template<typename _Tp >
typedef const _Tp& MEM_Allocator< _Tp >::const_reference

Definition at line 19 of file MEM_Allocator.h.

◆ difference_type

template<typename _Tp >
typedef ptrdiff_t MEM_Allocator< _Tp >::difference_type

Definition at line 15 of file MEM_Allocator.h.

◆ pointer

template<typename _Tp >
typedef _Tp* MEM_Allocator< _Tp >::pointer

Definition at line 16 of file MEM_Allocator.h.

◆ reference

template<typename _Tp >
typedef _Tp& MEM_Allocator< _Tp >::reference

Definition at line 18 of file MEM_Allocator.h.

◆ size_type

template<typename _Tp >
typedef size_t MEM_Allocator< _Tp >::size_type

Definition at line 14 of file MEM_Allocator.h.

◆ value_type

template<typename _Tp >
typedef _Tp MEM_Allocator< _Tp >::value_type

Definition at line 20 of file MEM_Allocator.h.

Constructor & Destructor Documentation

◆ MEM_Allocator() [1/3]

template<typename _Tp >
MEM_Allocator< _Tp >::MEM_Allocator ( )
throw (
)
inline

Definition at line 26 of file MEM_Allocator.h.

◆ MEM_Allocator() [2/3]

template<typename _Tp >
MEM_Allocator< _Tp >::MEM_Allocator ( const MEM_Allocator< _Tp > &  )
throw (
)
inline

Definition at line 29 of file MEM_Allocator.h.

◆ MEM_Allocator() [3/3]

template<typename _Tp >
template<typename _Tp1 >
MEM_Allocator< _Tp >::MEM_Allocator ( const MEM_Allocator< _Tp1 >  )
throw (
)
inline

Definition at line 33 of file MEM_Allocator.h.

◆ ~MEM_Allocator()

template<typename _Tp >
MEM_Allocator< _Tp >::~MEM_Allocator ( )
throw (
)
inline

Definition at line 37 of file MEM_Allocator.h.

Member Function Documentation

◆ address() [1/2]

template<typename _Tp >
const_pointer MEM_Allocator< _Tp >::address ( const_reference  __x) const
inline

Definition at line 46 of file MEM_Allocator.h.

◆ address() [2/2]

template<typename _Tp >
pointer MEM_Allocator< _Tp >::address ( reference  __x) const
inline

Definition at line 41 of file MEM_Allocator.h.

◆ allocate()

template<typename _Tp >
_Tp* MEM_Allocator< _Tp >::allocate ( size_type  __n,
const void = 0 
)
inline

Definition at line 53 of file MEM_Allocator.h.

References MEM_mallocN, and NULL.

◆ construct()

template<typename _Tp >
void MEM_Allocator< _Tp >::construct ( pointer  __p,
const _Tp &  __val 
)
inline

Definition at line 72 of file MEM_Allocator.h.

◆ deallocate()

template<typename _Tp >
void MEM_Allocator< _Tp >::deallocate ( pointer  __p,
size_type   
)
inline

Definition at line 62 of file MEM_Allocator.h.

References MEM_freeN.

◆ destroy()

template<typename _Tp >
void MEM_Allocator< _Tp >::destroy ( pointer  __p)
inline

Definition at line 77 of file MEM_Allocator.h.

◆ max_size()

template<typename _Tp >
size_type MEM_Allocator< _Tp >::max_size ( ) const
throw (
)
inline

Definition at line 67 of file MEM_Allocator.h.


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