52 template <
typename Callback>
57 : m_callback(
std::move(callback))
62 : m_callback(
std::move(other.m_callback))
86 template <
typename Callback>
Register a callback to be called at the end of the current scope.
OnScopeExit(OnScopeExit &&other)
OnScopeExit(Callback &&callback)
OnScopeExit(const OnScopeExit &)=delete
OnScopeExit & operator=(const OnScopeExit &)=delete
The agxUtil namespace contain classes and methods for utility functionality.
OnScopeExit< Callback > onScopeExit(Callback &&callback)