Explicitly check for empty key in FlatHashImpl::find.

This commit is contained in:
levlam 2022-02-09 15:41:23 +03:00
parent 4eacaa3ebd
commit b403a3793d

View File

@ -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);