| 452 | |
| 453 | template <typename Key, typename Mapped, typename Hash, typename Equals, typename Allocator> |
| 454 | auto 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 | |
| 461 | template <typename Key, typename Mapped, typename Hash, typename Equals, typename Allocator> |
| 462 | auto FlatHashMap<Key, Mapped, Hash, Equals, Allocator>::at(key_type const& key) const -> mapped_type const& { |