MCPcopy Create free account
hub / github.com/adriancable/eternal / SetVal

Method SetVal

doom/src/tarray.h:487–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485 return (*this)[index];
486 }
487 void SetVal (unsigned int index, T val)
488 {
489 if ((int)index < 0) return; // These always result in an out of memory condition.
490
491 if (index >= this->Size())
492 {
493 this->Resize (index + 1);
494 }
495 (*this)[index] = val;
496 }
497};
498
499// TMap ---------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.80
ResizeMethod · 0.45

Tested by

no test coverage detected