29 template <
typename FuncT>
31 : m_functor(
std::forward<FuncT>(_func))
40 : m_functor(std::move(rhs.m_functor))
42 rhs.m_functor = []() {};
49 m_functor = std::move(rhs.m_functor);
50 rhs.m_functor = []() {};
58 std::function<void()> m_functor = []() {};
Backports of C++ language features for use with C++11 compilers.
ScopeDestructor(ScopeDestructor &&rhs) noexcept
ScopeDestructor & operator=(const ScopeDestructor &)=delete
ScopeDestructor(const ScopeDestructor &)=delete
ScopeDestructor(FuncT &&_func)
ScopeDestructor & operator=(ScopeDestructor &&rhs) noexcept