MCPcopy Create free account
hub / github.com/apache/trafficserver / find

Method find

lib/swoc/include/swoc/IntrusiveHashMap.h:433–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431
432template <typename H>
433auto
434IntrusiveHashMap<H>::find(key_type key) -> iterator {
435 Bucket *b = this->bucket_for(key);
436 value_type *v = b->_v;
437 value_type *limit = b->limit();
438 while (v != limit && !H::equal(key, H::key_of(v))) {
439 v = H::next_ptr(v);
440 }
441 return v == limit ? _list.end() : _list.iterator_for(v);
442}
443
444template <typename H>
445auto

Callers 2

equal_rangeMethod · 0.95
eraseMethod · 0.95

Calls 5

bucket_forMethod · 0.95
limitMethod · 0.45
endMethod · 0.45
iterator_forMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected