mdbx++: add missing std::hash<mdbx::buffer<>>.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2025-11-12 16:28:44 +03:00
parent 2f33449f2a
commit 5b740913d0

View File

@@ -6415,6 +6415,12 @@ template <> struct hash<::mdbx::slice> {
MDBX_CXX14_CONSTEXPR size_t operator()(::mdbx::slice const &slice) const noexcept { return slice.hash_value(); }
};
template <class ALLOCATOR, typename CAPACITY_POLICY> struct hash<::mdbx::buffer<ALLOCATOR, CAPACITY_POLICY>> {
MDBX_CXX14_CONSTEXPR size_t operator()(::mdbx::buffer<ALLOCATOR, CAPACITY_POLICY> const &buffer) const noexcept {
return buffer.hash_value();
}
};
/// end cxx_api @}
} // namespace std