mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-02-15 11:45:52 +00: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);
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user