Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ricardou
· 4y ago · 0 comments
One I didn't see here which has been a pleasure to use lately:
https://en.cppreference.com/w/cpp/container/map/extract
Used to update map keys without reallocation.
Comments
[–]
reassembled
4y ago
Thank you! I do this kind of operation a lot and had no idea this new method existed in C++17.