mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd:Ⓜ️:event::refs: Simplify closure typename.
This commit is contained in:
parent
913ec123e3
commit
d4f6e3e8ea
2 changed files with 5 additions and 5 deletions
|
@ -29,10 +29,10 @@ struct ircd::m::event::refs
|
||||||
event::idx idx;
|
event::idx idx;
|
||||||
|
|
||||||
public:
|
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 dbs::ref &type, const closure &) const;
|
||||||
bool for_each(const closure_bool &) const;
|
bool for_each(const closure &) const;
|
||||||
|
|
||||||
bool has(const dbs::ref &type, const event::idx &) const;
|
bool has(const dbs::ref &type, const event::idx &) const;
|
||||||
bool has(const dbs::ref &type) const;
|
bool has(const dbs::ref &type) const;
|
||||||
|
|
|
@ -174,7 +174,7 @@ const
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ircd::m::event::refs::for_each(const closure_bool &closure)
|
ircd::m::event::refs::for_each(const closure &closure)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
return for_each(dbs::ref(-1), closure);
|
return for_each(dbs::ref(-1), closure);
|
||||||
|
@ -182,7 +182,7 @@ const
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ircd::m::event::refs::for_each(const dbs::ref &type,
|
ircd::m::event::refs::for_each(const dbs::ref &type,
|
||||||
const closure_bool &closure)
|
const closure &closure)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
if(!idx)
|
if(!idx)
|
||||||
|
|
Loading…
Reference in a new issue