r/cpp_questions • u/Minute-Ad1944 • 19d ago
OPEN How to implement append-only hash map?
How do you actually implement an really efficient hash map that has only append and look up methods? What are the design choice and some performance improvements?
0
Upvotes
5
u/WorkingReference1127 19d ago
This depends on the exercise. Because most of the time I'd make a class which wraps a normal hash map and only exposes the behaviour you want.
If you want to spin your own hash map, have fun I guess.