mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-19 19:39:26 +08:00
mdbx++: добавление typename mdbx::default_allocator
.
This commit is contained in:
3
mdbx.h++
3
mdbx.h++
@@ -356,6 +356,9 @@ class cursor_managed;
|
||||
__cpp_lib_memory_resource >= 201603L && _GLIBCXX_USE_CXX11_ABI)
|
||||
/// \brief Default polymorphic allocator for modern code.
|
||||
using polymorphic_allocator = ::std::pmr::string::allocator_type;
|
||||
using default_allocator = polymorphic_allocator;
|
||||
#else
|
||||
using default_allocator = legacy_allocator;
|
||||
#endif /* __cpp_lib_memory_resource >= 201603L */
|
||||
|
||||
/// \brief Default singe-byte string.
|
||||
|
Reference in New Issue
Block a user