bit::memory
Public Member Functions | List of all members
bit::memory::allocator_info Class Reference

This type is used to hold the generic information for a given allocator. More...

#include <allocator_info.hpp>

Public Member Functions

 allocator_info (const char *name, const void *address)
 Constructs an allocator_info with a given name and the address of the allocator. More...
 
const char * name () const noexcept
 Gets the name of the allocator. More...
 
const void * address () const noexcept
 Gets the address of the allocator. More...
 

Detailed Description

This type is used to hold the generic information for a given allocator.

Definition at line 44 of file allocator_info.hpp.

Constructor & Destructor Documentation

◆ allocator_info()

bit::memory::allocator_info::allocator_info ( const char *  name,
const void *  address 
)

Constructs an allocator_info with a given name and the address of the allocator.

Parameters
namethe name of the allocator
addressthe (possibly null) address of the allocator

Member Function Documentation

◆ address()

const void* bit::memory::allocator_info::address ( ) const
noexcept

Gets the address of the allocator.

Returns
the address of the allocator

◆ name()

const char* bit::memory::allocator_info::name ( ) const
noexcept

Gets the name of the allocator.

Returns
the name of the allocator

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