3 ms·
Unless you have a compelling reason: none of them. The modern (C++17<) stdlib should cover your needs.
by aaaaaaaaaaab 5y ago
Unless you have a compelling reason: none of them. The modern (C++17<) stdlib should cover your needs.
- sgeisenh 5y agoThe stdlib implementations of associative containers have serious drawbacks. At the very least, most projects should consider adopting absl::flat_hash_(set|map) and absl::btree_(set|map) (or similar replacements) over the stdlib containers. I am also partial to explicit error handling over exceptions, and there is a lot to like about absl::Status (and absl::StatusOr). Disclaimer: I work for Google but the views expressed are my own and don't necessarily reflect those of my employer.