Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
iallocator.h File Reference

Memory allocator interface. More...

Include dependency graph for iallocator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

 roc
 Root 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

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.

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.

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.

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.