WPILibC++ 2025.1.1
|
Contains information about an allocator. More...
#include <wpi/memory/error.hpp>
Public Member Functions | |
constexpr | allocator_info (const char *n, const void *alloc) noexcept |
Public Attributes | |
const char * | name |
The name of the allocator. | |
const void * | allocator |
A pointer representing an allocator. | |
Friends | |
constexpr bool | operator== (const allocator_info &a, const allocator_info &b) noexcept |
constexpr bool | operator!= (const allocator_info &a, const allocator_info &b) noexcept |
Contains information about an allocator.
It can be used for logging in the various handler functions.
|
inlineconstexprnoexcept |
|
friend |
|
friend |
const void* wpi::memory::allocator_info::allocator |
A pointer representing an allocator.
It does not necessarily point to the beginning of the allocator object, the only guarantee is that different allocator objects result in a different pointer value. For stateless allocators it is sometimes nullptr
.
const char* wpi::memory::allocator_info::name |
The name of the allocator.
It is a NTBS whose lifetime is not managed by this object, it must be stored elsewhere or be a string literal.