12 , onDestroy_{std::move(onDestroy)}
16 : wasMoved_{other.wasMoved_}
17 , onDestroy_{std::move(other.onDestroy_)}
19 other.wasMoved_ =
true;
24 wasMoved_ = other.wasMoved_;
25 onDestroy_ = std::move(other.onDestroy_);
26 other.wasMoved_ =
true;
31 if (!wasMoved_ && onDestroy_)
36 if (!wasMoved_ && onDestroy_)
45 std::function<void()> onDestroy_;
Definition: on_destroy.hpp:8
OnDestroy(std::function< void()> onDestroy)
Definition: on_destroy.hpp:10
void trigger()
Definition: on_destroy.hpp:34
OnDestroy & operator=(OnDestroy const &)=delete
OnDestroy(OnDestroy const &)=delete
OnDestroy(OnDestroy &&other)
Definition: on_destroy.hpp:15
~OnDestroy()
Definition: on_destroy.hpp:29
OnDestroy & operator=(OnDestroy &&other)
Definition: on_destroy.hpp:22
Definition: file_dialog.hpp:6