Constructor
| 91 | |
| 92 | /// Constructor |
| 93 | Stack(MemoryAllocator& allocator, uint64 capacity = 0) |
| 94 | :mAllocator(allocator), mArray(nullptr), mNbElements(0), mCapacity(0) { |
| 95 | |
| 96 | if (capacity > 0) { |
| 97 | allocate(capacity); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | /// Copy constructor |
| 102 | Stack(const Stack& stack) |