From 7bad77f61eeb10e7261c9911939b8bfdcfe5ab50 Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 28 Dec 2020 14:25:39 -0500 Subject: [PATCH] Update comment - issue #79 --- parallel_hashmap/phmap.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parallel_hashmap/phmap.h b/parallel_hashmap/phmap.h index e9c2cc0..b2176a2 100644 --- a/parallel_hashmap/phmap.h +++ b/parallel_hashmap/phmap.h @@ -3505,8 +3505,9 @@ public: // if map does not contains key, it is inserted and the mapped value is value-constructed // with the provided arguments (if any), as with try_emplace. - // Then the lambda is called with the mapped value (under write lock protection) and can - // update the mapped value. + // if map already contains key, then the lambda is called with the mapped value (under + // write lock protection) and can update the mapped value. + // returns true if key was not already present, false otherwise. // --------------------------------------------------------------------------------------- template bool try_emplace_l(K&& k, F&& f, Args&&... args) {