28 #ifndef YSL_INC_CORE_YSMSG_H_
29 #define YSL_INC_CORE_YSMSG_H_ 1
32 #include "../Adaptor/ycont.h"
76 Message(ID msg_id = 0)
112 content = std::move(c);
137 operator==(const Message&, const Message&);
143 operator<(const Message&, const Message&);
159 Swap(Message&) ynothrow;
170 private multimap<Priority, Message, std::greater<Priority>>
204 DefGetter(const ynothrow, Priority, MaxPriority,
233 Peek(Message& msg)
const
236 msg =
begin()->second;
255 Push(
const Message& msg, Priority prior)
258 insert(make_pair(prior, msg));
265 Push(
const Message&& msg, Priority prior)
268 insert(make_pair(prior, std::move(msg)));
281 using Messaging::Message;