From 19a965c1ef5352fc6a8605aa5a2179033657e43d Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Thu, 2 Oct 2025 11:11:35 +0800 Subject: [PATCH] [Improvement] (MG_Util/Types): Use FastSTL::unordered_map as the default implementation. --- MobileGL/Includes.h | 3 +++ MobileGL/MG_Util/Types.h | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/MobileGL/Includes.h b/MobileGL/Includes.h index d3703e4e..5692d139 100644 --- a/MobileGL/Includes.h +++ b/MobileGL/Includes.h @@ -33,6 +33,9 @@ #include #include +// Include FastSTL +#include + // Include ankerl::unordered_dense #include diff --git a/MobileGL/MG_Util/Types.h b/MobileGL/MG_Util/Types.h index e97a1233..26744f40 100644 --- a/MobileGL/MG_Util/Types.h +++ b/MobileGL/MG_Util/Types.h @@ -45,8 +45,9 @@ namespace MobileGL { using SizeT = std::size_t; template using Array = std::array; - template - using UnorderedMap = ankerl::unordered_dense::map; + template , class KeyEqual = std::equal_to, + class Allocator = std::allocator>> + using UnorderedMap = FastSTL::unordered_map; template inline constexpr std::remove_reference_t&& Move(T&& t) noexcept { return static_cast&&>(t);