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