MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / count

Function count

extern/json/json.hpp:19178–19188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19176 }
19177
19178 size_type count(const key_type& key) const
19179 {
19180 for (auto it = this->begin(); it != this->end(); ++it)
19181 {
19182 if (m_compare(it->first, key))
19183 {
19184 return 1;
19185 }
19186 }
19187 return 0;
19188 }
19189
19190 template<class KeyType, detail::enable_if_t<
19191 detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value, int> = 0>

Callers 3

OptionValueClass · 0.85
vector_if_equal_operatorFunction · 0.85
sanitize_string_literalFunction · 0.85

Calls 4

is_objectFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected