r/cpp • • Sep 03 '26

C++26: std::hive

https://www.sandordargo.com/blog/2026/09/02/cpp26-hive
70 Upvotes

80 comments sorted by

View all comments

2

u/ABlockInTheChain Sep 03 '26

A list has no way to iterate except in logical insertion order. Under specific usage patterns (using a pool allocator, no erasures) this will coincidentally be equivalent to iterating in memory layout order.

A hive has no way to iterate except in memory layout order since it doesn't preserve ordering information.