CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ScopeExit< Func > Struct Template Reference

#include <CeresEngine/Foundation/ScopeExit.hpp>

Public Member Functions

 ScopeExit (Func &&func) noexcept(std::is_nothrow_move_constructible_v< Func >)
 
 ScopeExit (const ScopeExit &)=delete
 
ScopeExitoperator= (const ScopeExit &)=delete
 
 ScopeExit (ScopeExit &&rhs) noexcept(std::is_nothrow_move_constructible_v< Func >)
 
ScopeExitoperator= (ScopeExit &&)=delete
 
 ~ScopeExit () noexcept
 

Public Attributes

Func func
 

Constructor & Destructor Documentation

◆ ScopeExit() [1/3]

template<typename Func >
CeresEngine::ScopeExit< Func >::ScopeExit ( Func &&  func)
inlinenoexcept

◆ ScopeExit() [2/3]

template<typename Func >
CeresEngine::ScopeExit< Func >::ScopeExit ( const ScopeExit< Func > &  )
delete

◆ ScopeExit() [3/3]

template<typename Func >
CeresEngine::ScopeExit< Func >::ScopeExit ( ScopeExit< Func > &&  rhs)
inlinenoexcept

◆ ~ScopeExit()

template<typename Func >
CeresEngine::ScopeExit< Func >::~ScopeExit ( )
inlinenoexcept

Member Function Documentation

◆ operator=() [1/2]

◆ operator=() [2/2]

Member Data Documentation

◆ func


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