mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-20 07:49:27 +08:00
mdbx++: добавление упущенных inline-реализаций mdbx::cursor::upper_bound()
и mdbx::cursor::upper_bound_multivalue()
.
This commit is contained in:
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);
|
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,
|
inline cursor::move_result cursor::find_multivalue(const slice &key,
|
||||||
const slice &value,
|
const slice &value,
|
||||||
bool throw_notfound) {
|
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);
|
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) {
|
inline bool cursor::seek(const slice &key) {
|
||||||
return move(seek_key, const_cast<slice *>(&key), nullptr, false);
|
return move(seek_key, const_cast<slice *>(&key), nullptr, false);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user