libosmscout
0.1
|
ScopeGuard utility calls its constructor parameter (callable type) in it's destructor (on the end of the scope) More...
#include <ScopeGuard.h>
Public Member Functions | |
ScopeGuard & | operator= (const ScopeGuard &)=delete |
ScopeGuard & | operator= (ScopeGuard &&)=delete |
ScopeGuard (CB cb) noexcept(noexcept(std::move(cb))) | |
ScopeGuard (const ScopeGuard &)=delete | |
ScopeGuard (ScopeGuard &&other)=delete | |
~ScopeGuard () noexcept | |
ScopeGuard utility calls its constructor parameter (callable type) in it's destructor (on the end of the scope)
Examples:
CB | noexcept callable . |
|
inlineexplicitnoexcept |
|
delete |
|
delete |
|
inlinenoexcept |
|
delete |
|
delete |