mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx++: уточнение const
и noexcept
для нескольких методов.
This commit is contained in:
parent
fb827959a9
commit
2a41b24876
8
mdbx.h++
8
mdbx.h++
@ -2639,7 +2639,7 @@ public:
|
||||
return buffer(src, make_reference);
|
||||
}
|
||||
|
||||
static buffer key_from(const silo &&src) noexcept {
|
||||
static buffer key_from(silo &&src) noexcept {
|
||||
return buffer(::std::move(src));
|
||||
}
|
||||
|
||||
@ -3591,7 +3591,7 @@ public:
|
||||
void close(bool dont_sync = false);
|
||||
|
||||
env_managed(env_managed &&) = default;
|
||||
env_managed &operator=(env_managed &&other) {
|
||||
env_managed &operator=(env_managed &&other) noexcept {
|
||||
if (MDBX_UNLIKELY(handle_))
|
||||
MDBX_CXX20_UNLIKELY {
|
||||
assert(handle_ != other.handle_);
|
||||
@ -3890,7 +3890,7 @@ class LIBMDBX_API_TYPE txn_managed : public txn {
|
||||
public:
|
||||
MDBX_CXX11_CONSTEXPR txn_managed() noexcept = default;
|
||||
txn_managed(txn_managed &&) = default;
|
||||
txn_managed &operator=(txn_managed &&other) {
|
||||
txn_managed &operator=(txn_managed &&other) noexcept {
|
||||
if (MDBX_UNLIKELY(handle_))
|
||||
MDBX_CXX20_UNLIKELY {
|
||||
assert(handle_ != other.handle_);
|
||||
@ -4112,7 +4112,7 @@ public:
|
||||
void close();
|
||||
|
||||
cursor_managed(cursor_managed &&) = default;
|
||||
cursor_managed &operator=(cursor_managed &&other) {
|
||||
cursor_managed &operator=(cursor_managed &&other) noexcept {
|
||||
if (MDBX_UNLIKELY(handle_))
|
||||
MDBX_CXX20_UNLIKELY {
|
||||
assert(handle_ != other.handle_);
|
||||
|
Loading…
x
Reference in New Issue
Block a user