diff --git a/Source/Engine/Core/Collections/Array.h b/Source/Engine/Core/Collections/Array.h index 8f73cfba7..f60d0dec1 100644 --- a/Source/Engine/Core/Collections/Array.h +++ b/Source/Engine/Core/Collections/Array.h @@ -17,8 +17,8 @@ API_CLASS(InBuild) class Array { friend Array; public: - typedef T ItemType; - typedef typename AllocationType::template Data AllocationData; + using ItemType = T; + using AllocationData = typename AllocationType::template Data; private: int32 _count; diff --git a/Source/Engine/Core/Collections/BitArray.h b/Source/Engine/Core/Collections/BitArray.h index 97674974c..c62362780 100644 --- a/Source/Engine/Core/Collections/BitArray.h +++ b/Source/Engine/Core/Collections/BitArray.h @@ -14,8 +14,8 @@ API_CLASS(InBuild) class BitArray { friend BitArray; public: - typedef uint64 ItemType; - typedef typename AllocationType::template Data AllocationData; + using ItemType = uint64; + using AllocationData = typename AllocationType::template Data; private: int32 _count; diff --git a/Source/Engine/Core/Collections/Dictionary.h b/Source/Engine/Core/Collections/Dictionary.h index 438e1bb75..468025ffe 100644 --- a/Source/Engine/Core/Collections/Dictionary.h +++ b/Source/Engine/Core/Collections/Dictionary.h @@ -102,7 +102,7 @@ public: } }; - typedef typename AllocationType::template Data AllocationData; + using AllocationData = typename AllocationType::template Data; private: int32 _elementsCount = 0; diff --git a/Source/Engine/Core/Collections/HashSet.h b/Source/Engine/Core/Collections/HashSet.h index 1bfcc75eb..0be793d96 100644 --- a/Source/Engine/Core/Collections/HashSet.h +++ b/Source/Engine/Core/Collections/HashSet.h @@ -85,7 +85,7 @@ public: } }; - typedef typename AllocationType::template Data AllocationData; + using AllocationData = typename AllocationType::template Data; private: int32 _elementsCount = 0; diff --git a/Source/Engine/Core/Collections/RingBuffer.h b/Source/Engine/Core/Collections/RingBuffer.h index 1bc0ae5f4..9d1c16483 100644 --- a/Source/Engine/Core/Collections/RingBuffer.h +++ b/Source/Engine/Core/Collections/RingBuffer.h @@ -14,8 +14,8 @@ template class RingBuffer { public: - typedef T ItemType; - typedef typename AllocationType::template Data AllocationData; + using ItemType = T; + using AllocationData = typename AllocationType::template Data; private: int32 _front = 0, _back = 0, _count = 0, _capacity = 0; diff --git a/Source/Engine/Core/Memory/Allocation.h b/Source/Engine/Core/Memory/Allocation.h index bdf30a16d..5fce2ad73 100644 --- a/Source/Engine/Core/Memory/Allocation.h +++ b/Source/Engine/Core/Memory/Allocation.h @@ -279,4 +279,4 @@ public: }; }; -typedef HeapAllocation DefaultAllocation; +using DefaultAllocation = HeapAllocation; diff --git a/Source/Engine/Renderer/RenderListBuffer.h b/Source/Engine/Renderer/RenderListBuffer.h index bbe087e6e..d12c430f1 100644 --- a/Source/Engine/Renderer/RenderListBuffer.h +++ b/Source/Engine/Renderer/RenderListBuffer.h @@ -17,8 +17,8 @@ class RenderListBuffer { friend RenderListBuffer; public: - typedef T ItemType; - typedef typename AllocationType::template Data AllocationData; + using ItemType = T; + using AllocationData = typename AllocationType::template Data; private: volatile int64 _count;