Commit a0299fa2 by Abseil Team Committed by Copybara-Service

Clarify that lazy_emplace returns an iterator to the new element when lookup fails.

PiperOrigin-RevId: 545683736
Change-Id: Ic0abec5037e160898e2f24de1b1489caff7d06fd
parent b1fb259e
...@@ -2041,7 +2041,8 @@ class raw_hash_set { ...@@ -2041,7 +2041,8 @@ class raw_hash_set {
// Extension API: support for lazy emplace. // Extension API: support for lazy emplace.
// //
// Looks up key in the table. If found, returns the iterator to the element. // Looks up key in the table. If found, returns the iterator to the element.
// Otherwise calls `f` with one argument of type `raw_hash_set::constructor`. // Otherwise calls `f` with one argument of type `raw_hash_set::constructor`,
// and returns an iterator to the new element.
// //
// `f` must abide by several restrictions: // `f` must abide by several restrictions:
// - it MUST call `raw_hash_set::constructor` with arguments as if a // - it MUST call `raw_hash_set::constructor` with arguments as if a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment