MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / resize

Method resize

modules/core/core/include/OpenString/common/sequence.h:382–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380 template <class T, u64 I>
381 template <class ... Args>
382 void sequence<T, I>::resize(const u64 size, Args&&... args) noexcept
383 {
384 const u64 origin_size = this->size();
385 this->resize_uninitialized(size);
386 for(u64 i = origin_size; i < size; ++i)
387 allocator<T>::placement_construct(this->data_at(i), std::forward<Args>(args)...);
388 }
389
390 template <class T, u64 I>
391 void sequence<T, I>::push_back(T element) noexcept

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.95
resize_uninitializedMethod · 0.95
data_atMethod · 0.95

Tested by

no test coverage detected