mirror of
https://github.com/matrix-construct/construct
synced 2024-10-04 14:48:56 +02:00
ircd:Ⓜ️ Typedefs to close over event::id and room::id.
This commit is contained in:
parent
bc4072c4d1
commit
00ed883f22
1 changed files with 6 additions and 0 deletions
|
@ -119,6 +119,9 @@ struct ircd::m::id::user
|
||||||
struct ircd::m::id::event
|
struct ircd::m::id::event
|
||||||
:ircd::m::id
|
: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>;
|
using buf = m::id::buf<event>;
|
||||||
template<class... args> event(args&&... a) :m::id{EVENT, std::forward<args>(a)...} {}
|
template<class... args> event(args&&... a) :m::id{EVENT, std::forward<args>(a)...} {}
|
||||||
event() = default;
|
event() = default;
|
||||||
|
@ -137,6 +140,9 @@ struct ircd::m::id::event
|
||||||
struct ircd::m::id::room
|
struct ircd::m::id::room
|
||||||
:ircd::m::id
|
: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>;
|
using buf = m::id::buf<room>;
|
||||||
template<class... args> room(args&&... a) :m::id{ROOM, std::forward<args>(a)...} {}
|
template<class... args> room(args&&... a) :m::id{ROOM, std::forward<args>(a)...} {}
|
||||||
room() = default;
|
room() = default;
|
||||||
|
|
Loading…
Reference in a new issue