refactor(containers): add the CElementalObject concept to constrain elements

This commit is contained in:
2023-02-26 22:13:45 +08:00
parent c8650b4aa5
commit 40d27eece6
4 changed files with 10 additions and 7 deletions

View File

@ -175,7 +175,7 @@ private:
NAMESPACE_PRIVATE_END
/** 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 <CObject T, typename Allocator = FDefaultAllocator> requires (!CConst<T> && CDestructible<T> && CInstantiableAllocator<Allocator>)
template <CElementalObject T, CInstantiableAllocator Allocator = FDefaultAllocator> requires (!CConst<T>)
class TArray final
{
public: