| 316 | |
| 317 | template <typename Key, typename Mapped, typename Hash, typename Equals, typename Allocator> |
| 318 | auto FlatHashMap<Key, Mapped, Hash, Equals, Allocator>::operator=(FlatHashMap const& other) -> FlatHashMap& { |
| 319 | m_table.clear(); |
| 320 | m_table.reserve(other.size()); |
| 321 | for (auto const& p : other) |
| 322 | m_table.insert(p); |
| 323 | return *this; |
| 324 | } |
| 325 | |
| 326 | template <typename Key, typename Mapped, typename Hash, typename Equals, typename Allocator> |
| 327 | auto FlatHashMap<Key, Mapped, Hash, Equals, Allocator>::operator=(FlatHashMap&& other) -> FlatHashMap& { |