As in the question, can you remove an element from std::unordered_set using the bucket iterator ( local_iterator )? I see two possible solutions:
- Since erase () accepts only global
iterator s, is there equivalent functionality for local_iterator ? - Is it possible to get an equivalent global
iterator for a local_iterator ?
If this is not possible, please clarify why this is not so.
c ++ c ++ 11 unordered-set
Tom de caluwé
source share