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

Method Insert

SampleFramework11/v1.02/Containers.h:205–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 }
204
205 void Insert(T item, uint64 idx)
206 {
207 Assert_(count < array.Size());
208 Assert_(idx <= count);
209 if(idx == count)
210 {
211 Add(item);
212 return;
213 }
214
215 for(int64 i = count; i > int64(idx); --i)
216 array[i] = array[i - 1];
217
218 array[idx] = item;
219 ++count;
220 }
221
222 void Remove(uint64 idx)
223 {

Callers 1

MakeFriendlyNameMethod · 0.80

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected