CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
ScopeExit.hpp File Reference
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

struct  CeresEngine::ScopeExit< Func >
 

Namespaces

namespace  CeresEngine
 

Macros

#define CE_SCOPE_EXIT   const ::CeresEngine::ScopeExit CE_TOKENPASTE2(_scopeExit, __COUNTER__) = [&]() noexcept
 

Functions

template<typename Func >
auto CeresEngine::ce_scope_exit (Func &&func) noexcept
 
template<typename T , typename Func >
auto CeresEngine::ce_scope_exit (T *ptr, Func func) noexcept
 

Macro Definition Documentation

◆ CE_SCOPE_EXIT

#define CE_SCOPE_EXIT   const ::CeresEngine::ScopeExit CE_TOKENPASTE2(_scopeExit, __COUNTER__) = [&]() noexcept