3.0.0
Breaking Changes
- Get Function
- get -> returning immutable value (replacement for getValue)
- getMutable -> returning mutable pointer (replacement for getPointer)
New API
- void addAll(int index , T *arr, size_t arrSize) - add all entries from the array to the list at the index.
API Removal
- toArray
- fromArray
- sort
Further Changes
- add Clang-Format file for unified code style
- adding Tests based on Unity
- Prevent all mutable lists to save Rvalues
- RValues are only temporary and therefore they cannot be saved in a mutable list (!)
- Entries can save a pointer for mutable values and an object for immutable values
- setValue and getValue of the entries now depends on the mutability of the list
- T objects are now saved in the Entries instead of "pointer to T objects"
- This is because of the scoped memory allocation of an object during the add-process. Otherwise the object would be free'd after running out of the add-method scope.
- remove macro for the creation of final values due to the fact, that 'memcpy' does not work on objects of classes
- add pre-processor checks for rvalue-functions (only available in C++11 or later; and earlier by defining a macro)
- change some int to size_t where it makes logical sense
- more correct equals check for mutable lists (not only value equal, but object/reference equal)
What's Changed
- Bump actions/checkout from 3 to 4 by @dependabot in #38
- Bump actions/setup-python from 4 to 5 by @dependabot in #43
- Version 3.0.0 by @nkaaf in #42
Full Changelog: v2.1.4...v3.0.0