A class to execute a callback when destroyed.
More...
#include <MiscUtilities.hpp>
A class to execute a callback when destroyed.
Definition at line 8 of file MiscUtilities.hpp.
◆ OnEndScope() [1/3]
Botcraft::Utilities::OnEndScope::OnEndScope |
( |
const std::function< void()> & |
f = []() {} | ) |
|
|
inline |
◆ ~OnEndScope()
Botcraft::Utilities::OnEndScope::~OnEndScope |
( |
| ) |
|
|
inline |
◆ OnEndScope() [2/3]
Botcraft::Utilities::OnEndScope::OnEndScope |
( |
const OnEndScope & |
other | ) |
|
|
delete |
◆ OnEndScope() [3/3]
Botcraft::Utilities::OnEndScope::OnEndScope |
( |
OnEndScope && |
other | ) |
|
|
delete |
◆ operator=()
◆ callback
std::function<void()> Botcraft::Utilities::OnEndScope::callback |
|
private |
The documentation for this class was generated from the following file: