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