Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Depending on the use case, of course. Sometimes you need a structure that's both associative and ordered, for example, in which case std::map is handy.


HAMT are not intrinsically ordered or sorted.


The comment obviously refers to std::map, which it mentions explicitly and which guarantees ordering.


But the entire discussion is about HAMT not std::map, the parent comment only talks about std::map as an example of performance issues in tree-based maps in asking how that relates to HAMT, it doesn't actually care a whit about std::map.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: