MCPcopy Create free account
hub / github.com/catboost/catboost / find

Method find

util/generic/hash_table.h:770–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768
769 template <class OtherKey>
770 iterator find(const OtherKey& key) {
771 size_type n = bkt_num_key(key);
772 node* first;
773 for (first = buckets[n];
774 first && !equals(get_key(first->val), key);
775 first = ((uintptr_t)first->next & 1) ? nullptr : first->next) /*y*/
776 {
777 }
778 return iterator(first); /*y*/
779 }
780
781 template <class OtherKey>
782 const_iterator find(const OtherKey& key) const {

Callers

nothing calls this directly

Calls 3

equalsFunction · 0.85
iteratorClass · 0.50
const_iteratorClass · 0.50

Tested by

no test coverage detected