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