Export
The link always opens the latest version of this page.
Ask an AI about it
Open in ChatGPTA new chat that reads this entry from the site Open in ClaudeThe same, in ClaudeShare the link instead of a file, and they will always see the latest version.
Files are a snapshot of today. The live page has anything newer.
std::hive
New C++26 container maintaining pointer validity with contiguous memory blocks and skipfield-based erasure
- Category
- container 1 source
std::hive is a container proposed for inclusion in C++26 1 that maintains pointer validity to elements even after erasure operations 1.
The container organizes data into contiguous memory blocks while employing a skipfield mechanism to track erased elements, enabling efficient removal without invalidating pointers to remaining elements 1. This design distinguishes it from standard containers like std::vector, which invalidate pointers during erasure, and std::list, which sacrifices cache locality 1.
Facts 2
| Attribute | Value | Confidence | Sources | Cited |
|---|---|---|---|---|
| Vendor | C++ standardization committee | low | 1 | 2 |
| Category | container | low | 1 | 1 |
Platform 1
Official links
Frequently mentioned together 1
Sources 2
- How fast is C++26’s std::hive? · Lobsters
- C++26: std::hive · Lobsters