Lines Matching refs:action
161 …size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noex… in EraseIf() argument
163 if (action == nullptr) { in EraseIf()
169 [&action](value_type &value) -> bool { return action(value.first, value.second); }); in EraseIf()
173 if (action((*it).first, (*it).second)) { in EraseIf()
184 void ForEach(const std::function<bool(const key_type &, mapped_type &)> &action) in ForEach() argument
186 if (action == nullptr) { in ForEach()
191 if (action(key, value)) { in ForEach()
197 void ForEachCopies(const std::function<bool(const key_type &, mapped_type &)> &action) in ForEachCopies() argument
199 if (action == nullptr) { in ForEachCopies()
204 if (action(key, value)) { in ForEachCopies()
211 …ol Compute(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) in Compute() argument
213 if (action == nullptr) { in Compute()
225 if (!action(it->first, it->second)) { in Compute()
232 …eIfPresent(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) in ComputeIfPresent() argument
234 if (action == nullptr) { in ComputeIfPresent()
242 if (!action(key, it->second)) { in ComputeIfPresent()
248 …ol ComputeIfAbsent(const key_type &key, const std::function<mapped_type(const key_type &)> &action) in ComputeIfAbsent() argument
250 if (action == nullptr) { in ComputeIfAbsent()
258 entries_.emplace(key, action(key)); in ComputeIfAbsent()
262 …teIfAbsent(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) in ComputeIfAbsent() argument
264 if (action == nullptr) { in ComputeIfAbsent()
277 if (!action(it->first, it->second)) { in ComputeIfAbsent()