24#ifndef PFS_STD_ALLOCATOR_H 
   25#define PFS_STD_ALLOCATOR_H 
   51      throw std::bad_array_new_length();
 
   53    const size_t size = 
n * 
sizeof(
T);
 
   56      throw std::bad_alloc();
 
   58    return static_cast<T *
>(
mem);
 
   62    const size_t size = 
n * 
sizeof(
T);
 
   72template <
class T, 
class U>
 
   77template <
class T, 
class U>
 
const char * p
Definition: ctype-mb.cc:1227
#define T
Definition: jit_executor_value.cc:373
Header for compiler-dependent features.
Some integer typedefs for easier portability.
#define MYF(v)
Definition: my_inttypes.h:97
ValueType max(X &&first)
Definition: gtid.h:103
size_t size(const char *const c)
Definition: base64.h:46
void * pfs_malloc(PFS_builtin_memory_class *klass, size_t size, myf flags)
Memory allocation for the performance schema.
Definition: pfs_global.cc:61
void pfs_free(PFS_builtin_memory_class *klass, size_t size, void *ptr)
Free memory allocated with.
Definition: pfs_global.cc:108
Miscellaneous global dependencies (declarations).
bool operator==(const PFS_std_allocator< T > &t, const PFS_std_allocator< U > &u)
Definition: pfs_std_allocator.h:73
bool operator!=(const PFS_std_allocator< T > &t, const PFS_std_allocator< U > &u)
Definition: pfs_std_allocator.h:78
static MEM_ROOT mem
Definition: sql_servers.cc:100
Definition: pfs_builtin_memory.h:39
Definition: pfs_std_allocator.h:38
PFS_builtin_memory_class * m_klass
Definition: pfs_std_allocator.h:69
PFS_std_allocator(PFS_builtin_memory_class *klass)
Definition: pfs_std_allocator.h:42
void deallocate(T *p, std::size_t n) noexcept
Definition: pfs_std_allocator.h:61
T value_type
Definition: pfs_std_allocator.h:40
PFS_builtin_memory_class * get_class() const
Definition: pfs_std_allocator.h:66
T * allocate(std::size_t n)
Definition: pfs_std_allocator.h:49
constexpr PFS_std_allocator(const PFS_std_allocator< U > &u) noexcept
Definition: pfs_std_allocator.h:46
int n
Definition: xcom_base.cc:509