File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -462,7 +462,9 @@ class ABSL_ATTRIBUTE_OWNER flat_hash_map
462462 //
463463 // Sets the number of slots in the `flat_hash_map` to the number needed to
464464 // accommodate at least `count` total elements without exceeding the current
465- // maximum load factor, and may rehash the container if needed.
465+ // maximum load factor, and may rehash the container if needed. After this
466+ // returns, it is guaranteed that `count - size()` elements can be inserted
467+ // into the `flat_hash_map` without another rehash.
466468 using Base::reserve;
467469
468470 // flat_hash_map::at()
Original file line number Diff line number Diff line change @@ -396,7 +396,9 @@ class ABSL_ATTRIBUTE_OWNER flat_hash_set
396396 //
397397 // Sets the number of slots in the `flat_hash_set` to the number needed to
398398 // accommodate at least `count` total elements without exceeding the current
399- // maximum load factor, and may rehash the container if needed.
399+ // maximum load factor, and may rehash the container if needed. After this
400+ // returns, it is guaranteed that `count - size()` elements can be inserted
401+ // into the `flat_hash_set` without another rehash.
400402 using Base::reserve;
401403
402404 // flat_hash_set::contains()
Original file line number Diff line number Diff line change @@ -455,7 +455,9 @@ class ABSL_ATTRIBUTE_OWNER node_hash_map
455455 //
456456 // Sets the number of slots in the `node_hash_map` to the number needed to
457457 // accommodate at least `count` total elements without exceeding the current
458- // maximum load factor, and may rehash the container if needed.
458+ // maximum load factor, and may rehash the container if needed. After this
459+ // returns, it is guaranteed that `count - size()` elements can be inserted
460+ // into the `node_hash_map` without another rehash.
459461 using Base::reserve;
460462
461463 // node_hash_map::at()
Original file line number Diff line number Diff line change @@ -390,7 +390,9 @@ class ABSL_ATTRIBUTE_OWNER node_hash_set
390390 //
391391 // Sets the number of slots in the `node_hash_set` to the number needed to
392392 // accommodate at least `count` total elements without exceeding the current
393- // maximum load factor, and may rehash the container if needed.
393+ // maximum load factor, and may rehash the container if needed. After this
394+ // returns, it is guaranteed that `count - size()` elements can be inserted
395+ // into the `node_hash_set` without another rehash.
394396 using Base::reserve;
395397
396398 // node_hash_set::contains()
You can’t perform that action at this time.
0 commit comments