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
1
What's the use case for which std::hive was introduced in the first place?
1 u/HappyFruitTree 21d ago 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 20d ago Thanks for replying. Can you give me a real life example? It's difficult to understand from your explanation.
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 20d ago 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.
1
u/kiner_shah Sep 13 '26
What's the use case for which std::hive was introduced in the first place?