3 ms·
That's a fair observation. What containers, beside Vector<T> (and Map<K,V> made with Vector) + variants would you like to see the most?
by pagghiu 3y ago
That's a fair observation.
What containers, beside Vector<T> (and Map<K,V> made with Vector) + variants would you like to see the most?
- shortrounddev2 3y agoSet, Stack, Queue, and their various implementations (HashSet, PriorityQueue, etc)
- pagghiu 3y agoThere is a VectorSet that creates Set with an unsorted vector. I think it would be good (and easy) creating a SortedVectorSet for better performance. HashMap and proper Map<K,V> are already on the roadmap https://pagghiu.github.io/SaneCppLibraries/library_containers.html#autotoc_md90 https://pagghiu.github.io/SaneCppLibraries/library_container... Stack can be easily created with Vector. I think Queue is pretty specialized, but I will think about it.
- smallstepforman 3y agoMy projects use stack and deque often.
- pagghiu 3y agoStack can be easily created with Vector (I can add it, thanks for the hint). I am conceptually against using Deque. If you need to keep stable addresses for objects you can use ArenaMap https://pagghiu.github.io/SaneCppLibraries/library_containers.html#autotoc_md87 https://pagghiu.github.io/SaneCppLibraries/library_container...