From 0d01c3050d01ea92b74b86de4dd4fd41d48a676b Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Sat, 20 Apr 2024 23:38:11 +0100 Subject: [PATCH] [+] AuHashMapOfHeap [+] AuListOfHeap [+] AuBSTOfHeap --- Include/auROXTL/auBST.hpp | 3 +++ Include/auROXTL/auHashMap.hpp | 3 +++ Include/auROXTL/auList.hpp | 5 ++++- Include/auROXTL/auMemoryModel.hpp | 3 +++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Include/auROXTL/auBST.hpp b/Include/auROXTL/auBST.hpp index 536e587..8c55f9d 100644 --- a/Include/auROXTL/auBST.hpp +++ b/Include/auROXTL/auBST.hpp @@ -16,6 +16,9 @@ template , class Allocator_t = Aurora::Memory::ClassArrayAllocator>> using AuBST = AURORA_RUNTIME_AU_BST; +template > +using AuBSTOfHeap = AuBST>>; + template struct AuIsBST : AuFalseType { }; diff --git a/Include/auROXTL/auHashMap.hpp b/Include/auROXTL/auHashMap.hpp index 48ed313..8c340ef 100644 --- a/Include/auROXTL/auHashMap.hpp +++ b/Include/auROXTL/auHashMap.hpp @@ -16,6 +16,9 @@ template , class Equal_t = AuHash::equal, class Allocator_t = Aurora::Memory::ClassArrayAllocator>> using AuHashMap = AURORA_RUNTIME_AU_HASH_MAP; +template , class Equal_t = AuHash::equal> +using AuHashMapOfHeap = AuHashMap>>; + template struct AuIsHashMap : AuFalseType { }; diff --git a/Include/auROXTL/auList.hpp b/Include/auROXTL/auList.hpp index 2f7d08c..46f2096 100644 --- a/Include/auROXTL/auList.hpp +++ b/Include/auROXTL/auList.hpp @@ -23,4 +23,7 @@ template , Aurora::Memory::ClassArrayAllocator, Aurora::Memory::PrimitiveArrayAllocator>> using AuList = AURORA_RUNTIME_AU_LIST; -#endif \ No newline at end of file +#endif + +template +using AuListOfHeap = AuList>; \ No newline at end of file diff --git a/Include/auROXTL/auMemoryModel.hpp b/Include/auROXTL/auMemoryModel.hpp index d3d2048..11aba30 100644 --- a/Include/auROXTL/auMemoryModel.hpp +++ b/Include/auROXTL/auMemoryModel.hpp @@ -247,6 +247,9 @@ static void auline AuSafeDelete(T *in) namespace Aurora::Memory { + template + struct CppHeapWrapper; + #if defined(AURORA_ROXTL_ALLOCATORS_USE_STD) template