mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
ircd:Ⓜ️ Add convenience event::fetch::valid() := row::valid().
This commit is contained in:
parent
98d3b8bc65
commit
5236a7d129
1 changed files with 9 additions and 0 deletions
|
@ -110,6 +110,8 @@ struct ircd::m::event::fetch
|
|||
std::array<db::cell, event::size()> cell;
|
||||
db::row row;
|
||||
|
||||
bool valid(const event::id &) const;
|
||||
|
||||
fetch(const event::id &, std::nothrow_t);
|
||||
fetch(const event::id &);
|
||||
fetch();
|
||||
|
@ -118,6 +120,13 @@ struct ircd::m::event::fetch
|
|||
friend void seek(fetch &, const event::id &);
|
||||
};
|
||||
|
||||
inline bool
|
||||
ircd::m::event::fetch::valid(const event::id &event_id)
|
||||
const
|
||||
{
|
||||
return row.valid(event_id);
|
||||
}
|
||||
|
||||
inline bool
|
||||
ircd::m::my(const event &event)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue