Open
Description
This will help implement complex types such as vector of dynamic strings or multidimensional vectors with dynamic dimensions.
- Custom grow functions (or maybe macros instead, more effecient?).
- In-place constructors and destructors for elements.
- Custom memory management (something like allocators in C++).
To save memory in such cases when callbacks aren't needed, pointers to them should be derived into another struct and pointer to that struct should be stored in header. If it's NULL
, then we don't use them.
Forget about assignment callbacks: we don't need them here at all. In addition, for assignment callbacks we also need typecast callbacks, that's out of scope of this library.
In far and happy future:
- Custom hash functions (for maps based on hashes).
Custom comparison functions (for maps based on trees).