| 1171 | } |
| 1172 | |
| 1173 | void swap(array_hash& other) { |
| 1174 | using std::swap; |
| 1175 | |
| 1176 | swap(static_cast<value_container<T>&>(*this), |
| 1177 | static_cast<value_container<T>&>(other)); |
| 1178 | swap(static_cast<Hash&>(*this), static_cast<Hash&>(other)); |
| 1179 | swap(static_cast<GrowthPolicy&>(*this), static_cast<GrowthPolicy&>(other)); |
| 1180 | swap(m_buckets_data, other.m_buckets_data); |
| 1181 | swap(m_buckets, other.m_buckets); |
| 1182 | swap(m_nb_elements, other.m_nb_elements); |
| 1183 | swap(m_max_load_factor, other.m_max_load_factor); |
| 1184 | swap(m_load_threshold, other.m_load_threshold); |
| 1185 | } |
| 1186 | |
| 1187 | /* |
| 1188 | * Lookup |
no test coverage detected