Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::core::CustomAllocation Class Reference

Allocation policy for objects with custom deallocation function. More...

#include <allocation_policy.h>

Public Member Functions

template<class T >
 CustomAllocation (void(*destroy_func)(T *))
 Initialize. More...
 
template<class T >
void destroy (T &object)
 Invoke custom destruction function. More...
 

Detailed Description

Allocation policy for objects with custom deallocation function.

Definition at line 69 of file allocation_policy.h.

Constructor & Destructor Documentation

◆ CustomAllocation()

template<class T >
roc::core::CustomAllocation::CustomAllocation ( void(*)(T *)  destroy_func)
inline

Initialize.

Definition at line 75 of file allocation_policy.h.

Member Function Documentation

◆ destroy()

template<class T >
void roc::core::CustomAllocation::destroy ( T &  object)
inline

Invoke custom destruction function.

Definition at line 83 of file allocation_policy.h.


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