mirror of
https://github.com/Tessil/robin-map.git
synced 2026-01-17 20:21:18 +01:00
Add assertion to make sure that static_empty_bucket_ptr is empty
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user