mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 08:54:02 +01:00
ircd::db: Tweak cell::valid() stack.
This commit is contained in:
parent
f9127e5681
commit
c43a0e49ab
1 changed files with 10 additions and 10 deletions
20
ircd/db.cc
20
ircd/db.cc
|
@ -9059,32 +9059,32 @@ const
|
|||
return likely(valid())? db::key(*it) : string_view{};
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::db::cell::valid()
|
||||
const
|
||||
{
|
||||
return bool(it) && db::valid(*it);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::db::cell::valid(const string_view &s)
|
||||
const
|
||||
{
|
||||
return bool(it) && db::valid_eq(*it, s);
|
||||
return valid() && db::valid_eq(*it, s);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::db::cell::valid_gt(const string_view &s)
|
||||
const
|
||||
{
|
||||
return bool(it) && db::valid_gt(*it, s);
|
||||
return valid() && db::valid_gt(*it, s);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::db::cell::valid_lte(const string_view &s)
|
||||
const
|
||||
{
|
||||
return bool(it) && db::valid_lte(*it, s);
|
||||
return valid() && db::valid_lte(*it, s);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::db::cell::valid()
|
||||
const
|
||||
{
|
||||
return bool(it) && db::valid(*it);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in a new issue