summaryrefslogtreecommitdiff
path: root/src/dynamic-array.hpp
AgeCommit message (Collapse)Author
2023-09-26minimum reserve size is two and invalid assertJonathan Bradley
2023-09-08Use move operator for DynArray<T>::PushJonathan Bradley
The EventBucket struct has a DynArray as a member. Calling ::Push({}) instantiates a new item and thus a new DynArray. When the new `{}` object goes out of scope, the DynArray destructor was being called, invalidating the data pointer. This commit ensures that if the object is cloned or moved, the pointer, which now lives in the outer array, remains valid.
2023-09-06DynArray [] operator assert on values > 0xF000000000000000Jonathan Bradley
2023-09-06DynArray<>[] now returns a reference instead of a copyJonathan Bradley
2023-09-06cleanup naming conventions and header defsJonathan Bradley
2023-09-06add DynArray<T>::Remove(index)Jonathan Bradley
2023-09-06DynArray gracefully handle attempting to reserve size of 0Jonathan Bradley
2023-09-06DynArray add Count(), Has(), and reserveCount ctorJonathan Bradley
2023-08-18add Push and Pop to DynArray<T>Jonathan Bradley
2023-08-12CAFE_BABE macroJonathan Bradley
2023-08-12Add DynamicArrayJonathan Bradley