Small wrapper which utilizes SFINAE to dispatch the call to appropriate allocator implementation.
More...
|
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 () |
|
template<typename Impl>
struct ut::detail::Alloc_< Impl >
Small wrapper which utilizes SFINAE to dispatch the call to appropriate allocator implementation.