mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-28 03:38:50 +08:00
mdbx++: добавление упущенных inline-реализаций mdbx::cursor::upper_bound()
и mdbx::cursor::upper_bound_multivalue()
.
This commit is contained in:
parent
5fc7a6b107
commit
450c1081fa
11
mdbx.h++
11
mdbx.h++
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user