| 1261 | } |
| 1262 | |
| 1263 | auto operator=(table const& other) -> table& { |
| 1264 | if (&other != this) { |
| 1265 | deallocate_buckets(); // deallocate before m_values is set (might have another allocator) |
| 1266 | m_values = other.m_values; |
| 1267 | m_max_load_factor = other.m_max_load_factor; |
| 1268 | m_hash = other.m_hash; |
| 1269 | m_equal = other.m_equal; |
| 1270 | m_shifts = initial_shifts; |
| 1271 | copy_buckets(other); |
| 1272 | } |
| 1273 | return *this; |
| 1274 | } |
| 1275 | |
| 1276 | auto operator=(table&& other) noexcept(noexcept(std::is_nothrow_move_assignable_v<value_container_type> && |
| 1277 | std::is_nothrow_move_assignable_v<Hash> && |
nothing calls this directly
no test coverage detected