0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-05 10:08:36 +02:00

ircd:Ⓜ️ Typedefs to close over event::id and room::id.

This commit is contained in:
Jason Volk 2018-02-09 22:13:18 -08:00
parent bc4072c4d1
commit 00ed883f22

View file

@ -119,6 +119,9 @@ struct ircd::m::id::user
struct ircd::m::id::event
:ircd::m::id
{
using closure = std::function<void (const id::event &)>;
using closure_bool = std::function<bool (const id::event &)>;
using buf = m::id::buf<event>;
template<class... args> event(args&&... a) :m::id{EVENT, std::forward<args>(a)...} {}
event() = default;
@ -137,6 +140,9 @@ struct ircd::m::id::event
struct ircd::m::id::room
:ircd::m::id
{
using closure = std::function<void (const id::room &)>;
using closure_bool = std::function<bool (const id::room &)>;
using buf = m::id::buf<room>;
template<class... args> room(args&&... a) :m::id{ROOM, std::forward<args>(a)...} {}
room() = default;