refactor(*): use CAllocatableObject instead of CElementalObject

This commit is contained in:
2023-03-22 22:25:12 +08:00
parent ff155e23de
commit 19dc46364a
5 changed files with 16 additions and 16 deletions

View File

@ -17,7 +17,7 @@ NAMESPACE_MODULE_BEGIN(Redcraft)
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 <CElementalObject T, CAllocator<T> Allocator = FHeapAllocator> requires (!CConst<T>)
template <CAllocatableObject T, CAllocator<T> Allocator = FHeapAllocator>
class TArray final
{
private: