From b3e0a6df31c4793accf5089032f1012c6a11388d Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Sat, 20 Apr 2024 00:09:22 +0100 Subject: [PATCH] [*] Improve AuList, AuHashMap, and AuBST template --- Include/auROXTL/auBST.hpp | 9 ++++----- Include/auROXTL/auHashMap.hpp | 8 ++++---- Include/auROXTL/auList.hpp | 13 ++++--------- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/Include/auROXTL/auBST.hpp b/Include/auROXTL/auBST.hpp index 8ab8198..536e587 100644 --- a/Include/auROXTL/auBST.hpp +++ b/Include/auROXTL/auBST.hpp @@ -13,16 +13,15 @@ #include "auHashUtils.hpp" -template > -using AuBST = AURORA_RUNTIME_AU_BST; - +template , class Allocator_t = Aurora::Memory::ClassArrayAllocator>> +using AuBST = AURORA_RUNTIME_AU_BST; template struct AuIsBST : AuFalseType { }; -template -struct AuIsBST> : AuTrueType +template +struct AuIsBST> : AuTrueType { }; template diff --git a/Include/auROXTL/auHashMap.hpp b/Include/auROXTL/auHashMap.hpp index fffc9de..48ed313 100644 --- a/Include/auROXTL/auHashMap.hpp +++ b/Include/auROXTL/auHashMap.hpp @@ -13,15 +13,15 @@ #include "auHashUtils.hpp" -template , class Equal_t = AuHash::equal> -using AuHashMap = AURORA_RUNTIME_AU_HASH_MAP; +template , class Equal_t = AuHash::equal, class Allocator_t = Aurora::Memory::ClassArrayAllocator>> +using AuHashMap = AURORA_RUNTIME_AU_HASH_MAP; template struct AuIsHashMap : AuFalseType { }; -template -struct AuIsHashMap> : AuTrueType +template +struct AuIsHashMap> : AuTrueType { }; template diff --git a/Include/auROXTL/auList.hpp b/Include/auROXTL/auList.hpp index af6395d..2f7d08c 100644 --- a/Include/auROXTL/auList.hpp +++ b/Include/auROXTL/auList.hpp @@ -15,17 +15,12 @@ #if defined(AURORA_ROXTL_CONTAINERS_USE_PURE) - template - using AuList = AURORA_RUNTIME_AU_LIST; + template , Aurora::Memory::ClassArrayAllocator, Aurora::Memory::PrimitiveArrayAllocator>> + using AuList = AURORA_RUNTIME_AU_LIST; #else - template - using AuList = AURORA_RUNTIME_AU_LIST, - Aurora::Memory::ClassArrayAllocator, - Aurora::Memory::PrimitiveArrayAllocator - > - >; + template , Aurora::Memory::ClassArrayAllocator, Aurora::Memory::PrimitiveArrayAllocator>> + using AuList = AURORA_RUNTIME_AU_LIST; #endif \ No newline at end of file