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

Method Insert

SampleFramework12/v1.00/Containers.h:257–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255 }
256
257 void Insert(T item, uint64 idx)
258 {
259 Assert_(count < array.Size());
260 Assert_(idx <= count);
261 if(idx == count)
262 {
263 Add(item);
264 return;
265 }
266
267 for(int64 i = count; i > int64(idx); --i)
268 array[i] = array[i - 1];
269
270 array[idx] = item;
271 ++count;
272 }
273
274 void Remove(uint64 idx)
275 {

Callers 1

MakeFriendlyNameMethod · 0.45

Calls 2

AddFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected