Explicitly check for empty key in FlatHashImpl::find.
This commit is contained in:
parent
4eacaa3ebd
commit
b403a3793d
@ -260,7 +260,7 @@ class FlatHashMapImpl {
|
||||
}
|
||||
|
||||
Iterator find(const KeyT &key) {
|
||||
if (empty()) {
|
||||
if (empty() || is_key_empty(key)) {
|
||||
return end();
|
||||
}
|
||||
auto bucket = calc_bucket(key);
|
||||
|
Loading…
Reference in New Issue
Block a user