Skip to content

Commit

Permalink
Add missing assert,
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Oct 19, 2024
1 parent a8bbd15 commit 60c371c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parallel_hashmap/phmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,7 @@ class raw_hash_set
// This overload is necessary because otherwise erase<K>(const K&) would be
// a better match if non-const iterator is passed as an argument.
iterator erase(iterator it) {
assert(it != end());
auto res = it;
++res;
_erase(it);
Expand Down

0 comments on commit 60c371c

Please sign in to comment.