2
3
4
5
6
7
8
11#ifndef _MSTD_EVENT_HANDLER_HPP_
12 #define _MSTD_EVENT_HANDLER_HPP_
14 #include <mstd/config.hpp>
17_MSTD_WARNING(
"this is only available for c++17 and greater!");
20 #include <mstd/events_types.hpp>
21 #include <mstd/functions.hpp>
22 #include <mstd/stable_vector.hpp>
25 template<
class... Args>
Definition event_handler.hpp:26
_MSTD_CONSTEXPR20 event_handler() noexcept=default
void(Args &&...) event_type
Definition event_handler.hpp:28
events_type _events
Definition event_handler.hpp:36
_MSTD_CONSTEXPR20 void remove_all_callbacks()
Definition event_handler.hpp:53
_MSTD_CONSTEXPR20 ~event_handler() noexcept=default
_MSTD_CONSTEXPR20 bool remove_callback(const id_type callbackId)
Definition event_handler.hpp:47
_MSTD_CONSTEXPR20 id_type add_callback(const event_action_handler &callback)
Definition event_handler.hpp:42
#define _MSTD_HAS_CXX17
Definition config.hpp:45
#define _MSTD_HAS_CXX20
Definition config.hpp:52
#define _MSTD_TYPENAME17
Definition config.hpp:82
#define _MSTD_CONSTEXPR20
Definition config.hpp:84
Definition arithmetic_types.hpp:23