MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1w5zlxc/c26_stdhive/pbc39tk/?context=3
r/cpp • u/pavel_v • Sep 03 '26
80 comments sorted by
View all comments
Show parent comment
1
It's for situations where you iterate over all elements frequently but don't care about the order, while elements are often being added/removed, and you need pointers/iterators to stay valid.
See P0447 for more motivation.
1 u/kiner_shah Sep 23 '26 Thanks for replying. Can you give me a real life example? It's difficult to understand from your explanation.
Thanks for replying. Can you give me a real life example? It's difficult to understand from your explanation.
View all comments
Show parent comment
1
u/HappyFruitTree Sep 22 '26
It's for situations where you iterate over all elements frequently but don't care about the order, while elements are often being added/removed, and you need pointers/iterators to stay valid.
See P0447 for more motivation.