mdbx: добавление mdbx_cursor_close2() в API.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2025-03-06 17:10:14 +03:00
parent 1299653457
commit b2bd8bae38
5 changed files with 93 additions and 46 deletions

View File

@@ -4545,7 +4545,10 @@ public:
}
/// \brief Explicitly closes the cursor.
void close();
inline void close() {
error::success_or_throw(::mdbx_cursor_close2(handle_));
handle_ = nullptr;
}
cursor_managed(cursor_managed &&) = default;
cursor_managed &operator=(cursor_managed &&other) noexcept {