summaryrefslogtreecommitdiff
path: root/src/dynamic-array.hpp
AgeCommit message (Collapse)Author
2025-07-17pke: handle pk.h breaking changesJonathan Bradley
2025-01-14chore: fix compiler warnings + extra includesJonathan Bradley
2025-01-09flatten file structure + renameJonathan Bradley
2024-11-14add pk.h and major pkmem refactorJonathan Bradley
Completely replaces the memory module with pkmem pkmem is a newer implementation of the same bucket memory structure. Also includes replacing pkstr.h with pk.h's pkstr
2024-01-10DynArray - allow passing a value throughJonathan Bradley
2024-01-01DynArray resize should destruct valid elementsJonathan Bradley
2024-01-01DynArray resize should destructJonathan Bradley
2023-12-23check assignable in DynArrayJonathan Bradley
2023-12-23FindFirstIndex for DynArray and PkeArrayJonathan Bradley
2023-11-29DynArray<T>::Reserve should only run destructor on elements that actually existJonathan Bradley
2023-11-22DynArray - dead code in Reserve functionJonathan Bradley
2023-11-16dynArray - reserve should only change reservedCountJonathan Bradley
2023-10-31DynArray - backwards assertJonathan Bradley
2023-10-20DynArray::Remove() now takes an optional count parameterJonathan Bradley
2023-10-13remove unused var warning and check if constructableJonathan Bradley
2023-10-13DynArray can specify MemBucket in constructorJonathan Bradley
2023-10-11DynArray empty push returns reference to new objectJonathan Bradley
2023-10-09DynArray placement new pushJonathan Bradley
2023-10-09more memory worksJonathan Bradley
2023-10-06Memory management - ctors and dtorsJonathan Bradley
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