mdbx++: добавление упущенных inline-реализаций mdbx::cursor::upper_bound() и mdbx::cursor::upper_bound_multivalue().

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2024-09-08 11:36:10 +03:00
parent 5fc7a6b107
commit 450c1081fa

View File

@ -7099,6 +7099,11 @@ inline cursor::move_result cursor::lower_bound(const slice &key,
return move(key_lowerbound, key, throw_notfound);
}
inline cursor::move_result cursor::upper_bound(const slice &key,
bool throw_notfound) {
return move(key_greater_than, key, throw_notfound);
}
inline cursor::move_result cursor::find_multivalue(const slice &key,
const slice &value,
bool throw_notfound) {
@ -7111,6 +7116,12 @@ inline cursor::move_result cursor::lower_bound_multivalue(const slice &key,
return move(multi_exactkey_lowerboundvalue, key, value, throw_notfound);
}
inline cursor::move_result cursor::upper_bound_multivalue(const slice &key,
const slice &value,
bool throw_notfound) {
return move(multi_exactkey_value_greater, key, value, throw_notfound);
}
inline bool cursor::seek(const slice &key) {
return move(seek_key, const_cast<slice *>(&key), nullptr, false);
}