0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-02-17 09:10:08 +01:00

ircd:Ⓜ️ Relax exception propagation through event::refs. (Fixes )

This commit is contained in:
Jason Volk 2019-08-02 13:24:31 -07:00
parent e22795e988
commit 8e5e599690
2 changed files with 16 additions and 16 deletions
include/ircd/m/event
ircd

View file

@ -31,12 +31,12 @@ struct ircd::m::event::refs
bool for_each(const dbs::ref &type, const closure_bool &) const;
bool for_each(const closure_bool &) const;
bool has(const dbs::ref &type, const event::idx &) const noexcept;
bool has(const event::idx &) const noexcept;
bool has(const dbs::ref &) const noexcept;
bool has(const dbs::ref &type, const event::idx &) const;
bool has(const dbs::ref &type) const;
bool has(const event::idx &) const;
size_t count(const dbs::ref &type) const noexcept;
size_t count() const noexcept;
size_t count(const dbs::ref &type) const;
size_t count() const;
refs(const event::idx &idx) noexcept;

View file

@ -2545,14 +2545,14 @@ ircd::m::event::refs::rebuild()
size_t
ircd::m::event::refs::count()
const noexcept
const
{
return count(dbs::ref(-1));
}
size_t
ircd::m::event::refs::count(const dbs::ref &type)
const noexcept
const
{
assert(idx);
size_t ret(0);
@ -2566,9 +2566,16 @@ const noexcept
return ret;
}
bool
ircd::m::event::refs::has(const event::idx &idx)
const
{
return has(dbs::ref(-1), idx);
}
bool
ircd::m::event::refs::has(const dbs::ref &type)
const noexcept
const
{
return !for_each(type, [&type]
(const event::idx &, const dbs::ref &ref)
@ -2578,17 +2585,10 @@ const noexcept
});
}
bool
ircd::m::event::refs::has(const event::idx &idx)
const noexcept
{
return has(dbs::ref(-1), idx);
}
bool
ircd::m::event::refs::has(const dbs::ref &type,
const event::idx &idx)
const noexcept
const
{
return !for_each(type, [&idx]
(const event::idx &ref, const dbs::ref &)