mirror of
https://github.com/matrix-construct/construct
synced 2024-12-01 19:22:53 +01:00
ircd:Ⓜ️:room::state::space: Add nullary count() to interface.
This commit is contained in:
parent
e38371d50c
commit
0c317bdf9d
2 changed files with 8 additions and 0 deletions
|
@ -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 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 string_view &state_key) const;
|
||||||
size_t count(const string_view &type) 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 int64_t &depth) const;
|
||||||
bool has(const string_view &type, const string_view &state_key) const;
|
bool has(const string_view &type, const string_view &state_key) const;
|
||||||
|
|
|
@ -2818,6 +2818,13 @@ const
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t
|
||||||
|
ircd::m::room::state::space::count()
|
||||||
|
const
|
||||||
|
{
|
||||||
|
return count(string_view{});
|
||||||
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
ircd::m::room::state::space::count(const string_view &type)
|
ircd::m::room::state::space::count(const string_view &type)
|
||||||
const
|
const
|
||||||
|
|
Loading…
Reference in a new issue