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