Core.Containers.Array (Visera.Core.Containers.Array)¶
Array container aggregate. TArray<T> (dynamic, std::vector-based) is the primary linear container; TInlineArray<T, N> and TPMRArray<T> are re-exported from submodules.
TArray<T>¶
Dynamic array: contiguous storage, O(1) random access and tail insert/remove. Capacity/size: GetSize(), GetCapacity(), Reserve(), Resize(), ShrinkToFit(). Access: operator[], At(), Front(), Back(), Data(). Modifiers: Clear(), PushBack(), EmplaceBack(), PopBack(), Insert(), Erase(), RemoveAtSwap(), Swap(). Iterators and C++20 range; works with Algorithm.Ranges. Copy/move when T allows.
Submodules¶
| Module | Description |
|---|---|
| Inline | Inline-capacity array, no heap |
| PMR | PMR-backed dynamic array |
See also¶
- Containers — parent module
- Algorithm.Ranges — ranges over arrays
- OS.Memory.Arena — custom allocator