#pragma once #include class ScopeGuard { public: std::function on_exit; ~ScopeGuard(); };