Tweaks
This commit is contained in:
@@ -466,6 +466,17 @@ public:
|
||||
_count++;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the specified item to the collection.
|
||||
/// </summary>
|
||||
/// <param name="item">The item to add.</param>
|
||||
void Add(T&& item)
|
||||
{
|
||||
EnsureCapacity(_count + 1);
|
||||
Memory::MoveItems(_allocation.Get() + _count, &item, 1);
|
||||
_count++;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the specified item to the collection.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user