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
9
namespace
sbx::signals {
10
11
struct
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_
sbx::memory::observer_ptr
A non-owning pointer that can be used to observe the value of a pointer.
Definition:
observer_ptr.hpp:28
sbx::signals::cleanable
Definition:
cleanable.hpp:11
libsbx-signals
libsbx
signals
cleanable.hpp
Generated by
1.9.5