MCPcopy Create free account
hub / github.com/Norbyte/bg3se / add

Method add

CoreLib/Base/PagedArray.h:180–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 }
179
180 T* add()
181 {
182 if (capacity() <= size()) {
183 realloc(capacity() + layout_.bucket_size());
184 }
185
186 auto val = layout_.at(pages_, size_++);
187 new (val) T();
188 return val;
189 }
190
191 T* add_uninitialized()
192 {

Callers 5

GrowMethod · 0.45
AddMethod · 0.45
RemoveComponentMethod · 0.45
PrepareAddComponentMethod · 0.45
CreateComponentRawMethod · 0.45

Calls 2

atMethod · 0.80
bucket_sizeMethod · 0.45

Tested by

no test coverage detected