sandbox
Loading...
Searching...
No Matches
cleanable.hpp
1#ifndef LIBSBX_SIGNAL_CLEANABLE_HPP_
2#define LIBSBX_SIGNAL_CLEANABLE_HPP_
3
4#include <libsbx/memory/observer_ptr.hpp>
5
6#include <libsbx/signals/slot_state.hpp>
7
8namespace sbx::signals {
9
10struct cleanable {
11 virtual ~cleanable() = default;
12 virtual auto clean(memory::observer_ptr<slot_state> state) -> void = 0;
13}; // struct cleanable
14
15} // namespace sbx::signals
16
17#endif // LIBSBX_SIGNAL_CLEANABLE_HPP_
A non-owning pointer that can be used to observe the value of a pointer.
Definition: observer_ptr.hpp:27
Definition: cleanable.hpp:10