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

Function count

src/json.hpp:19268–19278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19266 }
19267
19268 size_type count(const key_type& key) const
19269 {
19270 for (auto it = this->begin(); it != this->end(); ++it)
19271 {
19272 if (m_compare(it->first, key))
19273 {
19274 return 1;
19275 }
19276 }
19277 return 0;
19278 }
19279
19280 template<class KeyType, detail::enable_if_t<
19281 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.45
endMethod · 0.45

Tested by

no test coverage detected