MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / count

Function count

src/include/nlohmann/ordered_map.hpp:260–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 }
259
260 size_type count(const key_type& key) const
261 {
262 for (auto it = this->begin(); it != this->end(); ++it)
263 {
264 if (m_compare(it->first, key))
265 {
266 return 1;
267 }
268 }
269 return 0;
270 }
271
272 template<class KeyType, detail::enable_if_t<
273 detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value, int> = 0>

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected