18 template <
typename F_init,
typename F_done>
30 scoped_executor(_In_ F_init&& init, _In_ F_done&& done) : m_done(std::forward<F_done&&>(done))
32 std::forward<F_init&&>(init)();
40 std::forward<F_done&&>(m_done)();
Executes one lambda immediately, and another when exiting the scope.
Definition scoped_executor.hpp:20
scoped_executor(F_init &&init, F_done &&done)
Executes init immediately and saves done for destructor.
Definition scoped_executor.hpp:30
~scoped_executor()
Executes done lambda.
Definition scoped_executor.hpp:38