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

Method count

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

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

Source from the content-addressed store, hash-verified

425
426 /* -------------- lookup -------------- */
427 size_t count(const Key& key) const {
428 return m_impl.find(make_impl_key(key)) != m_impl.impl().end();
429 }
430
431 const_iterator find(const Key& key) const {
432 return m_impl.find(make_impl_key(key));

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
endMethod · 0.45
implMethod · 0.45

Tested by

no test coverage detected