From 243076cfecd8da987e12645d65feae89be0536fd Mon Sep 17 00:00:00 2001 From: Redstone1024 <2824517378@qq.com> Date: Sat, 2 Nov 2024 20:49:48 +0800 Subject: [PATCH] refactor(containers): remove the container's final qualifier allows it to be inherited --- Redcraft.Utility/Source/Public/Containers/Array.h | 2 +- Redcraft.Utility/Source/Public/Containers/ArrayView.h | 2 +- Redcraft.Utility/Source/Public/Containers/Bitset.h | 2 +- Redcraft.Utility/Source/Public/Containers/List.h | 2 +- Redcraft.Utility/Source/Public/Containers/StaticArray.h | 2 +- Redcraft.Utility/Source/Public/Containers/StaticBitset.h | 2 +- Redcraft.Utility/Source/Public/Memory/UniquePointer.h | 2 +- Redcraft.Utility/Source/Public/String/String.h | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Redcraft.Utility/Source/Public/Containers/Array.h b/Redcraft.Utility/Source/Public/Containers/Array.h index f31bd1b..233cacc 100644 --- a/Redcraft.Utility/Source/Public/Containers/Array.h +++ b/Redcraft.Utility/Source/Public/Containers/Array.h @@ -18,7 +18,7 @@ NAMESPACE_MODULE_BEGIN(Utility) /** Dynamic array. The elements are stored contiguously, which means that elements can be accessed not only through iterators, but also using offsets to regular pointers to elements. */ template Allocator = FHeapAllocator> -class TArray final +class TArray { private: diff --git a/Redcraft.Utility/Source/Public/Containers/ArrayView.h b/Redcraft.Utility/Source/Public/Containers/ArrayView.h index dcb0789..ebecb29 100644 --- a/Redcraft.Utility/Source/Public/Containers/ArrayView.h +++ b/Redcraft.Utility/Source/Public/Containers/ArrayView.h @@ -25,7 +25,7 @@ inline constexpr size_t DynamicExtent = INDEX_NONE; * is known at compile-time and encoded in the type, or a dynamic extent. */ template -class TArrayView final +class TArrayView { public: diff --git a/Redcraft.Utility/Source/Public/Containers/Bitset.h b/Redcraft.Utility/Source/Public/Containers/Bitset.h index 5a33ac3..fc2ac00 100644 --- a/Redcraft.Utility/Source/Public/Containers/Bitset.h +++ b/Redcraft.Utility/Source/Public/Containers/Bitset.h @@ -21,7 +21,7 @@ template requires (!CSameAs) using TDefaultBitsetAllocator = TInlineAllocator<(40 - 3 * sizeof(size_t)) / sizeof(InBlockType)>; template Allocator = TDefaultBitsetAllocator> requires (!CSameAs) -class TBitset final +class TBitset { private: diff --git a/Redcraft.Utility/Source/Public/Containers/List.h b/Redcraft.Utility/Source/Public/Containers/List.h index 7cc5acc..8a33c04 100644 --- a/Redcraft.Utility/Source/Public/Containers/List.h +++ b/Redcraft.Utility/Source/Public/Containers/List.h @@ -17,7 +17,7 @@ NAMESPACE_MODULE_BEGIN(Redcraft) NAMESPACE_MODULE_BEGIN(Utility) template Allocator = FHeapAllocator> -class TList final +class TList { private: diff --git a/Redcraft.Utility/Source/Public/Containers/StaticArray.h b/Redcraft.Utility/Source/Public/Containers/StaticArray.h index a6bf507..422b750 100644 --- a/Redcraft.Utility/Source/Public/Containers/StaticArray.h +++ b/Redcraft.Utility/Source/Public/Containers/StaticArray.h @@ -16,7 +16,7 @@ NAMESPACE_MODULE_BEGIN(Utility) /** TStaticArray is a container that encapsulates fixed size arrays. */ template -struct TStaticArray final +struct TStaticArray { private: diff --git a/Redcraft.Utility/Source/Public/Containers/StaticBitset.h b/Redcraft.Utility/Source/Public/Containers/StaticBitset.h index 2858ab5..b41aae4 100644 --- a/Redcraft.Utility/Source/Public/Containers/StaticBitset.h +++ b/Redcraft.Utility/Source/Public/Containers/StaticBitset.h @@ -28,7 +28,7 @@ NAMESPACE_PRIVATE_END #if 1 template > requires (!CSameAs) -class TStaticBitset final +class TStaticBitset { private: diff --git a/Redcraft.Utility/Source/Public/Memory/UniquePointer.h b/Redcraft.Utility/Source/Public/Memory/UniquePointer.h index 57bd86c..52e163e 100644 --- a/Redcraft.Utility/Source/Public/Memory/UniquePointer.h +++ b/Redcraft.Utility/Source/Public/Memory/UniquePointer.h @@ -721,7 +721,7 @@ public: private: NAMESPACE_PRIVATE::TUniqueStorage Storage; - + template *> OtherE> requires (CObject && !CBoundedArray && (CDestructible || CLValueReference)) friend class TUniquePtr; diff --git a/Redcraft.Utility/Source/Public/String/String.h b/Redcraft.Utility/Source/Public/String/String.h index 20bab62..f0ddfbf 100644 --- a/Redcraft.Utility/Source/Public/String/String.h +++ b/Redcraft.Utility/Source/Public/String/String.h @@ -22,7 +22,7 @@ template using TDefaultStringAllocator = TInlineAllocator<(40 - 3 * sizeof(size_t)) / sizeof(T)>; template Allocator = TDefaultStringAllocator> -class TString final +class TString { public: