diff --git a/include_std/vector b/include_std/vector index eadc8e1..b9bdd9d 100644 --- a/include_std/vector +++ b/include_std/vector @@ -285,6 +285,14 @@ namespace std this->VectorSize.store(Size); } + void resize(size_t count, const T &value) + { + reserve(count); + for (size_t i = this->VectorSize.load(); i < count; i++) + this->VectorBuffer[i] = value; + this->VectorSize.store(count); + } + void clear() { this->VectorCapacity.store(0);