TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Classes | Namespaces | Macros | Enumerations | Functions
ttkdefer.h File Reference
#include <type_traits>
#include "ttkmoduleexport.h"

Go to the source code of this file.

Classes

class  _ScopeGuard< Function >
 The class of the ttk defer module. More...
 

Namespaces

 TTK
 The namespace of the process utils.
 

Macros

#define defer   const auto TTK_CAT(ext_exitBlock_, __LINE__) = TTK::ScopeGuardOnExit() + [&]()
 

Enumerations

enum  TTK::ScopeGuardOnExit
 

Functions

template<typename Function >
_ScopeGuard< Function > operator+ (TTK::ScopeGuardOnExit, Function &&fn)
 

Macro Definition Documentation

#define defer   const auto TTK_CAT(ext_exitBlock_, __LINE__) = TTK::ScopeGuardOnExit() + [&]()

Definition at line 82 of file ttkdefer.h.

Function Documentation

template<typename Function >
_ScopeGuard<Function> operator+ ( TTK::ScopeGuardOnExit  ,
Function &&  fn 
)
inline

Definition at line 76 of file ttkdefer.h.