1 #ifndef OOKII_SCOPE_HELPER_H_
4 #define OOKII_SCOPE_HELPER_H_
8 namespace ookii::details
13 scope_exit() =
default;
15 scope_exit(std::function<
void()> callback)
20 scope_exit(scope_exit &) =
delete;
21 scope_exit &operator=(scope_exit &) =
delete;
28 void reset(std::function<
void()> callback = {})
44 std::function<void()> _callback;