14 template <
typename FunctionT>
15 requires std::is_nothrow_invocable_v<FunctionT>
17 : onExit_(std::forward<FunctionT>(func))
34 std::function<void()> onExit_;
39 struct MakeScopeExitImpl
41 template <
typename FunctionT>
44 return ScopeExit{std::forward<FunctionT>(
fn)};
49#define NUI_ON_SCOPE_EXIT auto NUI_UNIQUE_IDENTIFIER = ::Nui::Detail::MakeScopeExitImpl{}->*[&]() noexcept
Definition scope_exit.hpp:12
ScopeExit(ScopeExit &&other)=delete
ScopeExit(FunctionT &&func)
Definition scope_exit.hpp:16
~ScopeExit()
Definition scope_exit.hpp:19
ScopeExit(const ScopeExit &)=delete
ScopeExit & operator=(const ScopeExit &)=delete
void disarm()
Definition scope_exit.hpp:28
ScopeExit & operator=(ScopeExit &&other)=delete
static constexpr auto extractJsonMember(nlohmann::json const &json) -> decltype(auto)
Definition rpc_hub.hpp:29
Definition file_dialog.hpp:6