From 450c1081fa1ddf9b9982cf2bb9eb72cc6bdcae0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Sun, 8 Sep 2024 11:36:10 +0300 Subject: [PATCH] =?UTF-8?q?mdbx++:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=83=D0=BF=D1=83=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D1=85=20inline-=D1=80=D0=B5=D0=B0=D0=BB=D0=B8?= =?UTF-8?q?=D0=B7=D0=B0=D1=86=D0=B8=D0=B9=20`mdbx::cursor::upper=5Fbound()?= =?UTF-8?q?`=20=D0=B8=20`mdbx::cursor::upper=5Fbound=5Fmultivalue()`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mdbx.h++ | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mdbx.h++ b/mdbx.h++ index 9c4101f9..52d63a1e 100644 --- a/mdbx.h++ +++ b/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(&key), nullptr, false); }