MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / operator=

Method operator=

include/hipSYCL/common/unordered_dense.hpp:1263–1274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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> &&

Callers

nothing calls this directly

Calls 6

exchangeFunction · 0.85
clear_bucketsMethod · 0.80
moveFunction · 0.50
clearMethod · 0.45
get_allocatorMethod · 0.45

Tested by

no test coverage detected