0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 15:04:10 +01:00

ircd:Ⓜ️:event::refs: Simplify closure typename.

This commit is contained in:
Jason Volk 2020-10-11 10:53:18 -07:00
parent 913ec123e3
commit d4f6e3e8ea
2 changed files with 5 additions and 5 deletions

View file

@ -29,10 +29,10 @@ struct ircd::m::event::refs
event::idx idx;
public:
using closure_bool = std::function<bool (const event::idx &, const dbs::ref &)>;
using closure = std::function<bool (const event::idx &, const dbs::ref &)>;
bool for_each(const dbs::ref &type, const closure_bool &) const;
bool for_each(const closure_bool &) const;
bool for_each(const dbs::ref &type, const closure &) const;
bool for_each(const closure &) const;
bool has(const dbs::ref &type, const event::idx &) const;
bool has(const dbs::ref &type) const;

View file

@ -174,7 +174,7 @@ const
}
bool
ircd::m::event::refs::for_each(const closure_bool &closure)
ircd::m::event::refs::for_each(const closure &closure)
const
{
return for_each(dbs::ref(-1), closure);
@ -182,7 +182,7 @@ const
bool
ircd::m::event::refs::for_each(const dbs::ref &type,
const closure_bool &closure)
const closure &closure)
const
{
if(!idx)