MySQL 9.1.0
Source Code Documentation
ut::detail::Alloc_< Impl > Struct Template Reference

Small wrapper which utilizes SFINAE to dispatch the call to appropriate allocator implementation. More...

#include <alloc.h>

Static Public Member Functions

template<bool Zero_initialized, typename T = Impl>
static std::enable_if< T::is_pfs_instrumented_v, void * >::type alloc (size_t size, PSI_memory_key key)
 
template<bool Zero_initialized, typename T = Impl>
static std::enable_if<!T::is_pfs_instrumented_v, void * >::type alloc (size_t size, PSI_memory_key)
 
template<typename T = Impl>
static std::enable_if< T::is_pfs_instrumented_v, void * >::type realloc (void *ptr, size_t size, PSI_memory_key key)
 
template<typename T = Impl>
static std::enable_if<!T::is_pfs_instrumented_v, void * >::type realloc (void *ptr, size_t size, PSI_memory_key)
 
static void free (void *ptr)
 
static size_t datalen (void *ptr)
 
template<typename T = Impl>
static std::enable_if< T::is_pfs_instrumented_v, size_t >::type pfs_overhead ()
 
template<typename T = Impl>
static std::enable_if<!T::is_pfs_instrumented_v, size_t >::type pfs_overhead ()
 

Detailed Description

template<typename Impl>
struct ut::detail::Alloc_< Impl >

Small wrapper which utilizes SFINAE to dispatch the call to appropriate allocator implementation.

Member Function Documentation

◆ alloc() [1/2]

template<typename Impl >
template<bool Zero_initialized, typename T = Impl>
static std::enable_if< T::is_pfs_instrumented_v, void * >::type ut::detail::Alloc_< Impl >::alloc ( size_t  size,
PSI_memory_key  key 
)
inlinestatic

◆ alloc() [2/2]

template<typename Impl >
template<bool Zero_initialized, typename T = Impl>
static std::enable_if<!T::is_pfs_instrumented_v, void * >::type ut::detail::Alloc_< Impl >::alloc ( size_t  size,
PSI_memory_key   
)
inlinestatic

◆ datalen()

template<typename Impl >
static size_t ut::detail::Alloc_< Impl >::datalen ( void *  ptr)
inlinestatic

◆ free()

template<typename Impl >
static void ut::detail::Alloc_< Impl >::free ( void *  ptr)
inlinestatic

◆ pfs_overhead() [1/2]

template<typename Impl >
template<typename T = Impl>
static std::enable_if< T::is_pfs_instrumented_v, size_t >::type ut::detail::Alloc_< Impl >::pfs_overhead ( )
inlinestatic

◆ pfs_overhead() [2/2]

template<typename Impl >
template<typename T = Impl>
static std::enable_if<!T::is_pfs_instrumented_v, size_t >::type ut::detail::Alloc_< Impl >::pfs_overhead ( )
inlinestatic

◆ realloc() [1/2]

template<typename Impl >
template<typename T = Impl>
static std::enable_if< T::is_pfs_instrumented_v, void * >::type ut::detail::Alloc_< Impl >::realloc ( void *  ptr,
size_t  size,
PSI_memory_key  key 
)
inlinestatic

◆ realloc() [2/2]

template<typename Impl >
template<typename T = Impl>
static std::enable_if<!T::is_pfs_instrumented_v, void * >::type ut::detail::Alloc_< Impl >::realloc ( void *  ptr,
size_t  size,
PSI_memory_key   
)
inlinestatic

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