r8brain-free-src
High-quality pro audio sample rate converter library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
r8b::CStdClassAllocator Class Reference

The default base class for objects created on heap. More...

#include <r8bbase.h>

Inheritance diagram for r8b::CStdClassAllocator:
r8b::CStdMemAllocator

Public Member Functions

void operator delete (void *const p)
 
void operator delete[] (void *const p)
 
void * operator new (const size_t n)
 
void * operator new (const size_t, void *const p)
 
void * operator new[] (const size_t n)
 

Detailed Description

The default base class for objects created on heap.

Class that implements "new" and "delete" operators that use standard malloc() and free() functions.

Member Function Documentation

◆ operator delete()

void r8b::CStdClassAllocator::operator delete ( void *const  p)

Operator frees a previously allocated memory block for the object.

Parameters
pPointer to the allocated memory block for the object.

◆ operator delete[]()

void r8b::CStdClassAllocator::operator delete[] ( void *const  p)

Operator frees a previously allocated memory block for the object.

Parameters
pPointer to the allocated memory block for the object.

◆ operator new() [1/2]

void * r8b::CStdClassAllocator::operator new ( const size_t  n)
Parameters
nThe size of the object, in bytes.
Returns
Pointer to the allocated memory block for the object.

◆ operator new() [2/2]

void * r8b::CStdClassAllocator::operator new ( const  size_t,
void *const  p 
)
Parameters
pPointer to object's pre-allocated memory block.
Returns
Pointer to object.

◆ operator new[]()

void * r8b::CStdClassAllocator::operator new[] ( const size_t  n)
Parameters
nThe size of the object, in bytes.
Returns
Pointer to the allocated memory block for the object.