Blender V5.0
MEM_Allocator< _Tp > Struct Template Reference

#include <MEM_Allocator.h>

Classes

struct  rebind

Public Types

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

Public Member Functions

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

Detailed Description

template<typename _Tp>
struct MEM_Allocator< _Tp >

Definition at line 15 of file MEM_Allocator.h.

Member Typedef Documentation

◆ const_pointer

template<typename _Tp>
using MEM_Allocator< _Tp >::const_pointer = const _Tp *

Definition at line 19 of file MEM_Allocator.h.

◆ const_reference

template<typename _Tp>
using MEM_Allocator< _Tp >::const_reference = const _Tp &

Definition at line 21 of file MEM_Allocator.h.

◆ difference_type

template<typename _Tp>
using MEM_Allocator< _Tp >::difference_type = ptrdiff_t

Definition at line 17 of file MEM_Allocator.h.

◆ pointer

template<typename _Tp>
using MEM_Allocator< _Tp >::pointer = _Tp *

Definition at line 18 of file MEM_Allocator.h.

◆ reference

template<typename _Tp>
using MEM_Allocator< _Tp >::reference = _Tp &

Definition at line 20 of file MEM_Allocator.h.

◆ size_type

template<typename _Tp>
using MEM_Allocator< _Tp >::size_type = size_t

Definition at line 16 of file MEM_Allocator.h.

◆ value_type

template<typename _Tp>
using MEM_Allocator< _Tp >::value_type = _Tp

Definition at line 22 of file MEM_Allocator.h.

Constructor & Destructor Documentation

◆ MEM_Allocator() [1/3]

template<typename _Tp>
MEM_Allocator< _Tp >::MEM_Allocator ( )
defaultnoexcept

◆ MEM_Allocator() [2/3]

template<typename _Tp>
MEM_Allocator< _Tp >::MEM_Allocator ( const MEM_Allocator< _Tp > & )
defaultnoexcept

◆ MEM_Allocator() [3/3]

template<typename _Tp>
template<typename _Tp1>
MEM_Allocator< _Tp >::MEM_Allocator ( const MEM_Allocator< _Tp1 > )
inlinenoexcept

Definition at line 31 of file MEM_Allocator.h.

◆ ~MEM_Allocator()

template<typename _Tp>
MEM_Allocator< _Tp >::~MEM_Allocator ( )
defaultnoexcept

Member Function Documentation

◆ address() [1/2]

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

Definition at line 40 of file MEM_Allocator.h.

◆ address() [2/2]

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

Definition at line 35 of file MEM_Allocator.h.

◆ allocate()

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

Definition at line 47 of file MEM_Allocator.h.

◆ construct()

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

Definition at line 67 of file MEM_Allocator.h.

◆ deallocate()

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

Definition at line 57 of file MEM_Allocator.h.

◆ destroy()

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

Definition at line 72 of file MEM_Allocator.h.

◆ max_size()

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

Definition at line 62 of file MEM_Allocator.h.


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