Event

template<typename T>
struct Event

Event.

Public Functions

template<typename Result, typename Handler, typename ...Args>
inline Result dispatch(Handler &&handler, Args&&... args) const

Dispatch to handler.

inline operator MessageInfo const&() const

Access MessageInfo.

inline operator value_type const&() const

Access Message.

inline operator std::pair<MessageInfo const&, value_type const&>() const

Structured binding.

Public Members

MessageInfo const &message_info

MessageInfo.

value_type const &value

Message.

Public Static Functions

template<typename ...Args>
static inline void create_and_dispatch(auto &handler, MessageInfo const &message_info, T const &value, Args&&... args)

Create event and dispatch to handler.