MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / count

Function count

include/behaviortree_cpp/contrib/json.hpp:19264–19274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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