Documentation of memory

( foonathan/memory)

allocator_info Struct Reference

Detailed Description

Contains information about an allocator.

It can be used for logging in the various handler functions.

Member Functions

constexpr allocator_info (const char *name, const void *allocator) noexcept
 

Constructors

§ allocator_info()

constexpr allocator_info ( const char *  name,
const void *  allocator 
)
noexcept
Effects:
Creates it by giving it the name of the allocator and a pointer.

Related Functions

§ operator==

constexpr bool operator== ( const allocator_info a,
const allocator_info b 
)
friend
Effects:
Compares two allocator_info objects, they are equal, if the Allocator implementations is the same.
Returns:
The result of the comparision.

§ operator!=

constexpr bool operator!= ( const allocator_info a,
const allocator_info b 
)
friend
Effects:
Compares two allocator_info objects, they are equal, if the Allocator implementations is the same.
Returns:
The result of the comparision.