You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
It would be useful to have an
static_map::erase
function to form a more complete API forstatic_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 1Batomic<state>
for each slot. The lower 2 bits of this byte could be used to hold states such asempty
,filling
,filled
, ordeleted
.The text was updated successfully, but these errors were encountered: