MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Add

Method Add

Source/Engine/Core/Collections/Array.h:457–462  ·  view source on GitHub ↗

Adds the specified item to the collection. The item to add.

Source from the content-addressed store, hash-verified

455 /// </summary>
456 /// <param name="item">The item to add.</param>
457 void Add(const T& item)
458 {
459 EnsureCapacity(_count + 1);
460 Memory::ConstructItems(_allocation.Get() + _count, &item, 1);
461 ++_count;
462 }
463
464 /// <summary>
465 /// Adds the specified item to the collection.

Callers 8

DeserializeMethod · 0.45
GetItemsFunction · 0.45
WhereMethod · 0.45
SelectMethod · 0.45
GroupByMethod · 0.45
PutMethod · 0.45
GetKeysFunction · 0.45
GetValuesFunction · 0.45

Calls 4

EnsureCapacityFunction · 0.85
AddFunction · 0.70
GetMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected