MCPcopy Create free account
hub / github.com/ablab/spades / swap

Method swap

ext/include/tsl/array-hash/array_hash.h:1173–1185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

array_bucketClass · 0.45
swapMethod · 0.45
array_hashClass · 0.45
rehash_implMethod · 0.45

Calls 1

swapFunction · 0.50

Tested by

no test coverage detected