#pragma once #include <functional> class DoLaterHandler { private: std::function<void()> action; public: DoLaterHandler(); ~DoLaterHandler(); void addTodo(std::function<void()> action); void execute(); };