4 ms·
The slotmap crate [0], which stores an unordered object list in a Vec with persistent indices, implements a similar tagging scheme to avoid ABA problems. It's n
by LegionMammal978 2y ago
The slotmap crate [0], which stores an unordered object list in a Vec with persistent indices, implements a similar tagging scheme to avoid ABA problems. It's neat to see how this can be applied to raw pointers as well.
[0] https://docs.rs/slotmap/latest/slotmap/ https://docs.rs/slotmap/latest/slotmap/