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

Method count

source/core/StarFlatHashMap.hpp:486–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484
485template <typename Key, typename Mapped, typename Hash, typename Equals, typename Allocator>
486size_t FlatHashMap<Key, Mapped, Hash, Equals, Allocator>::count(key_type const& key) const {
487 if (m_table.find(key) != m_table.end())
488 return 1;
489 else
490 return 0;
491}
492
493template <typename Key, typename Mapped, typename Hash, typename Equals, typename Allocator>
494auto FlatHashMap<Key, Mapped, Hash, Equals, Allocator>::find(key_type const& key) const -> const_iterator {

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected