![]() |
MySQL 9.5.0
Source Code Documentation
|
Code documentation: Allocators.
Allows libraries to allocate memory such that:
This library provides the Memory_resource class, which is used in different ways depending on who you are:
Memory_resource parameter to either the function that allocates memory or the constructor for the class that manages the memory. The parameter must be passed by value, not reference or pointer. Allocate memory through this object. Make the parameter default to Memory_resource().Memory_resource object, call psi_memory_resource(Psi_memory_key) to get the Memory_resource object to pass to the function or constructor.Memory_resource parameter, allow that parameter to take its default value.