Lines Matching refs:action
130 …bool ContainIf(const key_type &key, const std::function<bool(const mapped_type &value)> &action) c… in ContainIf() argument
137 if (action) { in ContainIf()
138 return action(it->second); in ContainIf()
171 const std::function<bool(const key_type &key, mapped_type &value)> &action) noexcept in EraseIf() argument
173 if (action == nullptr) { in EraseIf()
178 if (it == entries_.end() || !action((*it).first, (*it).second)) { in EraseIf()
204 …size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noex… in EraseIf() argument
206 if (action == nullptr) { in EraseIf()
212 [&action](value_type &value) -> bool { return action(value.first, value.second); }); in EraseIf()
216 if (action((*it).first, (*it).second)) { in EraseIf()
227 void ForEach(const std::function<bool(const key_type &, mapped_type &)> &action) in ForEach() argument
229 if (action == nullptr) { in ForEach()
234 if (action(key, value)) { in ForEach()
240 void ForEachCopies(const std::function<bool(const key_type &, mapped_type &)> &action) in ForEachCopies() argument
242 if (action == nullptr) { in ForEachCopies()
247 if (action(key, value)) { in ForEachCopies()
254 …ol Compute(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) in Compute() argument
256 if (action == nullptr) { in Compute()
268 if (!action(it->first, it->second)) { in Compute()
275 …eIfPresent(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) in ComputeIfPresent() argument
277 if (action == nullptr) { in ComputeIfPresent()
285 if (!action(key, it->second)) { in ComputeIfPresent()
291 …ol ComputeIfAbsent(const key_type &key, const std::function<mapped_type(const key_type &)> &action) in ComputeIfAbsent() argument
293 if (action == nullptr) { in ComputeIfAbsent()
301 entries_.emplace(key, action(key)); in ComputeIfAbsent()
305 void DoActionIfEmpty(const std::function<void(void)> &action) in DoActionIfEmpty() argument
307 if (action == nullptr) { in DoActionIfEmpty()
312 action(); in DoActionIfEmpty()
317 void DoActionWhenClone(const std::function<void(const std::map<_Key, _Tp> &)> &action) in DoActionWhenClone() argument
319 if (action == nullptr) { in DoActionWhenClone()
324 action(tmp); in DoActionWhenClone()