Adds the specified item to the collection. The item to add.
| 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. |