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

Method count

src/core/include/megbrain/utils/thin/hash_table.h:585–585  ·  view source on GitHub ↗

-------------- lookup -------------- */

Source from the content-addressed store, hash-verified

583
584 /* -------------- lookup -------------- */
585 size_t count(const Key& key) const { return find(key) != m_impl.impl().end(); }
586
587 const_iterator find(const Key& key) const {
588 return m_impl.find(make_impl_key(key));

Callers

nothing calls this directly

Calls 3

findFunction · 0.50
endMethod · 0.45
implMethod · 0.45

Tested by

no test coverage detected