Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
flurrything
· 8y ago · 0 comments
> We generally recommend that you use absl::flat_hash_map<K, std::unique_ptr<V>> instead of absl::node_hash_map<K, V>.
So what's the point of `node_hash_map` then ?
Comments
[–]
mattkulukundis
8y ago
If you need pointer stability in keys, then node_hash_map has that. Also, it is easier for large scale conversions because it has the same pointer stability guarantees as std::unordered_map