Invokes a function when leaving scope (return or exception). Not included from TGUI.hpp; include explicitly if needed.
More...
#include <TGUI/ScopeExit.hpp>
|
|
template<typename G, typename = typename std::enable_if<!std::is_same_v<typename std::decay<G>::type, ScopeExit>>::type> |
| | ScopeExit (G &&func) |
|
| ScopeExit (const ScopeExit &)=delete |
|
ScopeExit & | operator= (const ScopeExit &)=delete |
|
ScopeExit & | operator= (ScopeExit &&)=delete |
|
| ScopeExit (ScopeExit &&other) noexcept(std::is_nothrow_move_constructible_v< F >) |
|
void | release () noexcept |
| | Skip invoking the function when the guard is destroyed.
|
template<typename F>
class tgui::ScopeExit< F >
Invokes a function when leaving scope (return or exception). Not included from TGUI.hpp; include explicitly if needed.
The documentation for this class was generated from the following file: