Add assertion to make sure that static_empty_bucket_ptr is empty

This commit is contained in:
Tessil
2022-06-13 20:03:39 +01:00
parent ac1e3d8481
commit f8e0f679d2

View File

@@ -1589,6 +1589,7 @@ class robin_hash : private Hash, private KeyEqual, private GrowthPolicy {
*/
bucket_entry* static_empty_bucket_ptr() noexcept {
static bucket_entry empty_bucket(true);
tsl_rh_assert(empty_bucket.empty());
return &empty_bucket;
}