Removing TextEditor from strings for now

This commit is contained in:
IlushaShurupov 2023-07-15 10:03:16 +03:00 committed by Ilya Shurupov
parent eae8852832
commit b7560534c1
7 changed files with 65 additions and 1049 deletions

View file

@ -175,6 +175,12 @@ namespace tp {
if (prevSize > mLoad) resizeBuffer(prevSize);
}
void reserve(ualni aSize) {
for (ualni i = 0; i < mLoad; i++) mBuff[i].~tType();
mBuff = (tType*) mAllocator.allocate(sizeof(tType) * aSize);
mSize = aSize;
mLoad = 0;
}
private:
void resizeBuffer(ualni newSize) {