|
header_utils
|
An RAII class that executes a function on destruction. More...
#include <scope.h>
Public Member Functions | |
| template<class EFP> | |
| scope_guard (EFP &&f) noexcept(noexcept(EFP(std::forward< EFP >(f)))) | |
| scope_guard (scope_guard &&rhs) noexcept(noexcept(EF(std::move(rhs.exit_function)))) | |
| scope_guard (const scope_guard &)=delete | |
| scope_guard & | operator= (const scope_guard &)=delete |
| scope_guard & | operator= (scope_guard &&)=delete |
| void | release () noexcept |
| bool | will_execute_on_destruction () const noexcept |
An RAII class that executes a function on destruction.
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |