Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::core::ScopedDestructor< T, Func > Class Template Reference

Destroys the object via custom deleter. More...

#include <scoped_destructor.h>

Inheritance diagram for roc::core::ScopedDestructor< T, Func >:
Collaboration diagram for roc::core::ScopedDestructor< T, Func >:

Public Member Functions

 ScopedDestructor (T obj)
 Initialize. More...
 
 ~ScopedDestructor ()
 Destroy. More...
 

Detailed Description

template<class T, void(*)(T) Func>
class roc::core::ScopedDestructor< T, Func >

Destroys the object via custom deleter.

Definition at line 21 of file scoped_destructor.h.

Constructor & Destructor Documentation

template<class T , void(*)(T) Func>
roc::core::ScopedDestructor< T, Func >::ScopedDestructor ( obj)
inlineexplicit

Initialize.

Definition at line 24 of file scoped_destructor.h.

template<class T , void(*)(T) Func>
roc::core::ScopedDestructor< T, Func >::~ScopedDestructor ( )
inline

Destroy.

Definition at line 29 of file scoped_destructor.h.


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