Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
iallocator.h File Reference

Memory allocator interface. More...

Go to the source code of this file.

Classes

class  roc::core::IAllocator
 Memory allocator interface. More...
 

Namespaces

namespace  roc
 Root namespace.
 
namespace  roc::core
 Basic building blocks.
 

Functions

void * operator new (size_t size, roc::core::IAllocator &allocator) ROC_ATTR_NOTHROW
 Placement new for core::IAllocator. More...
 
void * operator new[] (size_t size, roc::core::IAllocator &allocator) ROC_ATTR_NOTHROW
 Placement new[] for core::IAllocator. More...
 
template<class T >
void operator delete (void *ptr, roc::core::IAllocator &allocator) ROC_ATTR_NOTHROW
 Placement delete for core::IAllocator. More...
 
template<class T >
void operator delete[] (void *ptr, roc::core::IAllocator &allocator) ROC_ATTR_NOTHROW
 Placement delete[] for core::IAllocator. More...
 

Detailed Description

Memory allocator interface.

Definition in file iallocator.h.

Function Documentation

◆ operator delete()

template<class T >
void operator delete ( void *  ptr,
roc::core::IAllocator allocator 
)
inline

Placement delete for core::IAllocator.

Note
Compiler calls this if ctor throws in a placement new expression.

Definition at line 66 of file iallocator.h.

◆ operator delete[]()

template<class T >
void operator delete[] ( void *  ptr,
roc::core::IAllocator allocator 
)
inline

Placement delete[] for core::IAllocator.

Note
Compiler calls this if ctor throws in a placement new[] expression.

Definition at line 74 of file iallocator.h.

◆ operator new()

void * operator new ( size_t  size,
roc::core::IAllocator allocator 
)
inline

Placement new for core::IAllocator.

Note
nothrow forces compiler to check for NULL return value before calling ctor.

Definition at line 49 of file iallocator.h.

◆ operator new[]()

void * operator new[] ( size_t  size,
roc::core::IAllocator allocator 
)
inline

Placement new[] for core::IAllocator.

Note
nothrow forces compiler to check for NULL return value before calling ctor.

Definition at line 57 of file iallocator.h.