Skip to content

Commit f8e0f67

Browse files
committed
Add assertion to make sure that static_empty_bucket_ptr is empty
1 parent ac1e3d8 commit f8e0f67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/tsl/robin_hash.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,6 +1589,7 @@ class robin_hash : private Hash, private KeyEqual, private GrowthPolicy {
15891589
*/
15901590
bucket_entry* static_empty_bucket_ptr() noexcept {
15911591
static bucket_entry empty_bucket(true);
1592+
tsl_rh_assert(empty_bucket.empty());
15921593
return &empty_bucket;
15931594
}
15941595

0 commit comments

Comments
 (0)