0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 15:30:52 +01:00

ircd:Ⓜ️:room::state: Optimize has(type).

This commit is contained in:
Jason Volk 2020-04-17 23:05:00 -07:00
parent 43cabd52d5
commit 01f2564df7

View file

@ -284,9 +284,10 @@ bool
ircd::m::room::state::has(const string_view &type)
const
{
return for_each(type, event::id::closure_bool{[](const m::event::id &)
return !for_each(type, []
(const string_view &, const string_view &, const event::idx &)
{
return true;
return false;
}});
}