0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-05 10:08:36 +02:00

ircd:Ⓜ️ Add convenience event::fetch::valid() := row::valid().

This commit is contained in:
Jason Volk 2018-02-10 00:39:13 -08:00
parent 98d3b8bc65
commit 5236a7d129

View file

@ -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)
{