Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEA] static_map::erase #27

Closed
Nicolas-Iskos opened this issue Jul 31, 2020 · 1 comment
Closed

[FEA] static_map::erase #27

Nicolas-Iskos opened this issue Jul 31, 2020 · 1 comment
Labels
topic: static_map Issue related to the static_map type: feature request New feature request

Comments

@Nicolas-Iskos
Copy link

It would be useful to have an static_map::erase function to form a more complete API for static_map. Perhaps the simplest way to achieve this would be to use a "tombstone" sentinel value to indicate whether or not a slot contains an element that has been deleted. Another option would be to use an array of 1B atomic<state> for each slot. The lower 2 bits of this byte could be used to hold states such as empty, filling, filled, or deleted.

@PointKernel PointKernel added type: feature request New feature request topic: static_map Issue related to the static_map labels Dec 3, 2021
@PointKernel
Copy link
Member

Closed via #142

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: static_map Issue related to the static_map type: feature request New feature request
Projects
None yet
Development

No branches or pull requests

2 participants