JNGL
Public Member Functions | List of all members
Finally Class Reference

Helper class which calls a function when being destroyed. More...

#include <jngl/Finally.hpp>

Public Member Functions

 Finally (std::function< void()> functionToCall)
 
 Finally (Finally &&) noexcept
 
Finallyoperator= (Finally &&) noexcept
 
 Finally (const Finally &)=delete
 
Finallyoperator= (const Finally &)=delete
 

Detailed Description

Helper class which calls a function when being destroyed.

Definition at line 11 of file Finally.hpp.


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