MySQL 9.0.0
Source Code Documentation
PFS_std_allocator< T > Struct Template Reference

#include <pfs_std_allocator.h>

Inheritance diagram for PFS_std_allocator< T >:
[legend]

Public Types

typedef T value_type
 

Public Member Functions

 PFS_std_allocator (PFS_builtin_memory_class *klass)
 
template<class U >
constexpr PFS_std_allocator (const PFS_std_allocator< U > &u) noexcept
 
T * allocate (std::size_t n)
 
void deallocate (T *p, std::size_t n) noexcept
 
PFS_builtin_memory_classget_class () const
 

Private Attributes

PFS_builtin_memory_classm_klass
 

Member Typedef Documentation

◆ value_type

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

Constructor & Destructor Documentation

◆ PFS_std_allocator() [1/2]

template<class T >
PFS_std_allocator< T >::PFS_std_allocator ( PFS_builtin_memory_class klass)
inlineexplicit

◆ PFS_std_allocator() [2/2]

template<class T >
template<class U >
constexpr PFS_std_allocator< T >::PFS_std_allocator ( const PFS_std_allocator< U > &  u)
inlineexplicitconstexprnoexcept

Member Function Documentation

◆ allocate()

template<class T >
T * PFS_std_allocator< T >::allocate ( std::size_t  n)
inline

◆ deallocate()

template<class T >
void PFS_std_allocator< T >::deallocate ( T *  p,
std::size_t  n 
)
inlinenoexcept

◆ get_class()

template<class T >
PFS_builtin_memory_class * PFS_std_allocator< T >::get_class ( ) const
inline

Member Data Documentation

◆ m_klass

template<class T >
PFS_builtin_memory_class* PFS_std_allocator< T >::m_klass
private

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