mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:04:12 +08:00
mdbx++: перенос в public типов buffer::move_assign_alloc
и buffer::copy_assign_alloc
для старых стандартов C++ (backport).
This commit is contained in:
parent
1277fe965d
commit
ae01a8e891
9
mdbx.h++
9
mdbx.h++
@ -1578,10 +1578,6 @@ public:
|
||||
private:
|
||||
friend class txn;
|
||||
struct silo;
|
||||
using move_assign_alloc =
|
||||
allocation_aware_details::move_assign_alloc<silo, allocator_type>;
|
||||
using copy_assign_alloc =
|
||||
allocation_aware_details::copy_assign_alloc<silo, allocator_type>;
|
||||
using swap_alloc = allocation_aware_details::swap_alloc<silo, allocator_type>;
|
||||
struct silo /* Empty Base Class Optimization */ : public allocator_type {
|
||||
MDBX_CXX20_CONSTEXPR const allocator_type &get_allocator() const noexcept {
|
||||
@ -2073,6 +2069,11 @@ public:
|
||||
/// \todo buffer& operator>>(buffer&, ...) for reading (delegated to slice)
|
||||
/// \todo template<class X> key(X) for encoding keys while writing
|
||||
|
||||
using move_assign_alloc =
|
||||
allocation_aware_details::move_assign_alloc<silo, allocator_type>;
|
||||
using copy_assign_alloc =
|
||||
allocation_aware_details::copy_assign_alloc<silo, allocator_type>;
|
||||
|
||||
/// \brief Returns the associated allocator.
|
||||
MDBX_CXX20_CONSTEXPR allocator_type get_allocator() const {
|
||||
return silo_.get_allocator();
|
||||
|
Loading…
x
Reference in New Issue
Block a user