MySQL 8.4.2
Source Code Documentation
ut::detail::Aligned_alloc_< Impl > Struct Template Reference

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

#include <aligned_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, size_t alignment, 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, size_t alignment, PSI_memory_key)
 
static void free (void *ptr)
 
static size_t datalen (void *ptr)
 

Detailed Description

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

Small wrapper which utilizes SFINAE to dispatch the call to appropriate aligned 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::Aligned_alloc_< Impl >::alloc ( size_t  size,
size_t  alignment,
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::Aligned_alloc_< Impl >::alloc ( size_t  size,
size_t  alignment,
PSI_memory_key   
)
inlinestatic

◆ datalen()

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

◆ free()

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

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