MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Insert

Method Insert

SampleFramework12/v1.00/Containers.h:438–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436 }
437
438 void Insert(T item, uint64 idx)
439 {
440 Assert_(idx <= count);
441 if(idx == count)
442 {
443 Add(item);
444 return;
445 }
446
447 Reserve(count + 1);
448
449 for(int64 i = count; i > int64(idx); --i)
450 array[i] = array[i - 1];
451
452 array[idx] = item;
453 ++count;
454 }
455
456 void Remove(uint64 idx)
457 {

Callers

nothing calls this directly

Calls 1

AddFunction · 0.85

Tested by

no test coverage detected