[*] Use PMR allocators by default

This commit is contained in:
Reece Wilson 2024-09-09 06:53:00 +01:00
parent 3e73f0b23c
commit ea2703e559
4 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -26,4 +26,4 @@
#endif
template <class T>
using AuListOfHeap = AuList<T, Aurora::Memory::CppHeapWrapper<T>>;
using AuListOfHeap = AuList<T, Aurora::Memory::PmrCppHeapWrapper<T>>;

View File

@ -136,6 +136,9 @@ namespace Aurora::Memory
{
template <class T>
struct CppHeapWrapper;
template <class T>
struct PmrCppHeapWrapper;
#if defined(AURORA_ROXTL_ALLOCATORS_USE_STD)