LeechCraft  0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
util.h File Reference
#include <memory>
#include <functional>
#include <stdexcept>
+ Include dependency graph for util.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LeechCraft::Util::detail::SharedScopeGuard
 
class  LeechCraft::Util::detail::ScopeGuard< F >
 

Namespaces

 LeechCraft
 
 LeechCraft::Util
 
 LeechCraft::Util::detail
 

Typedefs

using LeechCraft::Util::detail::DefaultScopeGuardDeleter = std::function< void()>
 
using LeechCraft::Util::DefaultScopeGuard = detail::ScopeGuard< detail::DefaultScopeGuardDeleter >
 

Functions

template<typename F >
detail::ScopeGuard< F > LeechCraft::Util::MakeScopeGuard (const F &f)
 Returns an object performing passed function on scope exit. More...