summaryrefslogtreecommitdiff
path: root/absl/container/internal
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2023-07-05 08:37:20 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-07-05 08:38:20 -0700
commita0299fa26c3780ee19867fb08fc9f35897034542 (patch)
tree3d689d001ec7bbd26c53643e6a2501bc53c2cba1 /absl/container/internal
parentb1fb259ef793de57c2acefeeec07a6e3286ab9bc (diff)
Clarify that lazy_emplace returns an iterator to the new element when lookup fails.
PiperOrigin-RevId: 545683736 Change-Id: Ic0abec5037e160898e2f24de1b1489caff7d06fd
Diffstat (limited to 'absl/container/internal')
-rw-r--r--absl/container/internal/raw_hash_set.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/absl/container/internal/raw_hash_set.h b/absl/container/internal/raw_hash_set.h
index 970016f7..c2fe242d 100644
--- a/absl/container/internal/raw_hash_set.h
+++ b/absl/container/internal/raw_hash_set.h
@@ -2041,7 +2041,8 @@ class raw_hash_set {
// Extension API: support for lazy emplace.
//
// 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:
// - it MUST call `raw_hash_set::constructor` with arguments as if a