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

Method CopyFrom

CoreLib/Base/BaseArray.h:319–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317 }
318
319 void CopyFrom(StaticArray const& a)
320 {
321 clear();
322
323 if (a.size_ != size_) {
324 Resize(a.size_);
325 for (size_type i = 0; i < size_; i++) {
326 new (buf_ + i) T(a[i]);
327 }
328 }
329 }
330
331 inline T* data()
332 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected