MySQL 8.0.31
Source Code Documentation
ut::detail::Alloc_fn Struct Reference

Simple wrapping type around malloc, calloc and friends. More...

#include <allocator_traits.h>

Static Public Member Functions

static void * malloc (size_t nbytes)
 
static void * calloc (size_t nbytes)
 
template<bool Zero_initialized>
static void * alloc (size_t size)
 
static void * realloc (void *ptr, size_t nbytes)
 
static void free (void *ptr)
 

Detailed Description

Simple wrapping type around malloc, calloc and friends.

Member Function Documentation

◆ alloc()

template<bool Zero_initialized>
static void * ut::detail::Alloc_fn::alloc ( size_t  size)
inlinestatic

◆ calloc()

static void * ut::detail::Alloc_fn::calloc ( size_t  nbytes)
inlinestatic

◆ free()

static void ut::detail::Alloc_fn::free ( void *  ptr)
inlinestatic

◆ malloc()

static void * ut::detail::Alloc_fn::malloc ( size_t  nbytes)
inlinestatic

◆ realloc()

static void * ut::detail::Alloc_fn::realloc ( void *  ptr,
size_t  nbytes 
)
inlinestatic

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