Skip to content

What is the key/value requirements for these maps? #127

Answered by greg7mdp
afshinpir asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @afshinpir, thanks for the question. Because std::atomic is not movable, you won't be able to use use it in flat hash maps (where the values are moved when the map resizes), but you should be able to use them in phmap's node hash map, for example in phmap::node_hash_map.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by greg7mdp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants