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

Method at

source/core/StarFlatHashMap.hpp:454–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452
453template <typename Key, typename Mapped, typename Hash, typename Equals, typename Allocator>
454auto FlatHashMap<Key, Mapped, Hash, Equals, Allocator>::at(key_type const& key) -> mapped_type& {
455 auto i = m_table.find(key);
456 if (i == m_table.end())
457 throw std::out_of_range("no such key in FlatHashMap");
458 return i->second;
459}
460
461template <typename Key, typename Mapped, typename Hash, typename Equals, typename Allocator>
462auto FlatHashMap<Key, Mapped, Hash, Equals, Allocator>::at(key_type const& key) const -> mapped_type const& {

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected