7#include "../macros.hpp"
11hi_export_module(hikogui.utility.defer);
13hi_export
namespace hi {
inline namespace v1 {
29 template<std::invocable<> Func>
30 [[nodiscard]]
defer(Func &&func) noexcept : _func(std::forward<Func>(func)) {}
39 void cancel()
noexcept
The HikoGUI namespace.
Definition array_generic.hpp:20
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
Defer execution of a lambda to the end of the scope.
Definition defer.hpp:21