[*] Use PMR allocators by default
This commit is contained in:
parent
3e73f0b23c
commit
ea2703e559
@ -17,7 +17,7 @@ template <class T, typename Z, typename LessThan_t = AuHash::less<T>, class Allo
|
||||
using AuBST = AURORA_RUNTIME_AU_BST<T, Z, LessThan_t, Allocator_t>;
|
||||
|
||||
template <class T, typename Z, typename LessThan_t = AuHash::less<T>>
|
||||
using AuBSTOfHeap = AuBST<T, Z, LessThan_t, Aurora::Memory::CppHeapWrapper<AuPair<const T, Z>>>;
|
||||
using AuBSTOfHeap = AuBST<T, Z, LessThan_t, Aurora::Memory::PmrCppHeapWrapper<AuPair<const T, Z>>>;
|
||||
|
||||
template<typename T>
|
||||
struct AuIsBST : AuFalseType
|
||||
|
@ -17,7 +17,7 @@ template <class T, class Z, class Hash_t = AuHash::hash<T>, class Equal_t = AuHa
|
||||
using AuHashMap = AURORA_RUNTIME_AU_HASH_MAP<T, Z, Hash_t, Equal_t, Allocator_t>;
|
||||
|
||||
template <class T, class Z, class Hash_t = AuHash::hash<T>, class Equal_t = AuHash::equal<T>>
|
||||
using AuHashMapOfHeap = AuHashMap<T, Z, Hash_t, Equal_t, Aurora::Memory::CppHeapWrapper<AuPair<const T, Z>>>;
|
||||
using AuHashMapOfHeap = AuHashMap<T, Z, Hash_t, Equal_t, Aurora::Memory::PmrCppHeapWrapper<AuPair<const T, Z>>>;
|
||||
|
||||
template<typename T>
|
||||
struct AuIsHashMap : AuFalseType
|
||||
|
@ -26,4 +26,4 @@
|
||||
#endif
|
||||
|
||||
template <class T>
|
||||
using AuListOfHeap = AuList<T, Aurora::Memory::CppHeapWrapper<T>>;
|
||||
using AuListOfHeap = AuList<T, Aurora::Memory::PmrCppHeapWrapper<T>>;
|
@ -136,6 +136,9 @@ namespace Aurora::Memory
|
||||
{
|
||||
template <class T>
|
||||
struct CppHeapWrapper;
|
||||
|
||||
template <class T>
|
||||
struct PmrCppHeapWrapper;
|
||||
|
||||
#if defined(AURORA_ROXTL_ALLOCATORS_USE_STD)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user