forked from WG21-SG14/SG14
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slot_map: The free list should be LIFO, not FIFO.
This is mentioned at the end of Allan's paper http://open-std.org/JTC1/SC22/WG21/docs/papers/2017/p0661r0.pdf > Alternatively, the free list could store both a front and back index > on the container, providing the ability to cycle through free slots > more uniformly, reducing the chance of a generation counter overflow > occurring. This is a quite valuable benefit with low overhead, > so explicitly requiring it seems worthwhile.
- Loading branch information
1 parent
459007f
commit d47deb3
Showing
2 changed files
with
78 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters