0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-16 17:08:20 +02:00

ircd:Ⓜ️:room::state::space: Add nullary count() to interface.

This commit is contained in:
Jason Volk 2019-08-18 08:31:57 -07:00
parent e38371d50c
commit 0c317bdf9d
2 changed files with 8 additions and 0 deletions

View file

@ -33,6 +33,7 @@ struct ircd::m::room::state::space
size_t count(const string_view &type, const string_view &state_key, const int64_t &depth) const;
size_t count(const string_view &type, const string_view &state_key) const;
size_t count(const string_view &type) const;
size_t count() const;
bool has(const string_view &type, const string_view &state_key, const int64_t &depth) const;
bool has(const string_view &type, const string_view &state_key) const;

View file

@ -2818,6 +2818,13 @@ const
});
}
size_t
ircd::m::room::state::space::count()
const
{
return count(string_view{});
}
size_t
ircd::m::room::state::space::count(const string_view &type)
const