MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / count

Function count

Source/external/json.hpp:19140–19150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19138 }
19139
19140 size_type count(const key_type& key) const
19141 {
19142 for (auto it = this->begin(); it != this->end(); ++it)
19143 {
19144 if (m_compare(it->first, key))
19145 {
19146 return 1;
19147 }
19148 }
19149 return 0;
19150 }
19151
19152 template<class KeyType, detail::enable_if_t<
19153 detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value, int> = 0>

Callers

nothing calls this directly

Calls 3

is_objectFunction · 0.85
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected