|
E-MailRelay
|
A class that sets a simple variable to a particular value at the end of its scope. More...
#include <gscope.h>
Public Member Functions | |
| ScopeExitSet (T &ref) noexcept | |
| Constructor. More... | |
| ~ScopeExitSet () noexcept | |
| Destructor, sets the bound value. More... | |
| void | release () noexcept |
| Deactivates the exit function. More... | |
| ScopeExitSet (const ScopeExitSet &)=delete | |
| ScopeExitSet (ScopeExitSet &&)=delete | |
| ScopeExitSet & | operator= (const ScopeExitSet &)=delete |
| ScopeExitSet & | operator= (ScopeExitSet &&)=delete |
A class that sets a simple variable to a particular value at the end of its scope.
Eg:
|
explicitnoexcept |
|
noexcept |
|
noexcept |