Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
martinus committed Dec 11, 2023
1 parent 729896c commit ea7622e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/ankerl/unordered_dense.h
Original file line number Diff line number Diff line change
Expand Up @@ -1213,9 +1213,9 @@ class table : public std::conditional_t<is_map_v<T>, base_table_type_map<T>, bas
return *this;
}

auto operator=(table&& other) noexcept(
noexcept(std::is_nothrow_move_assignable_v<value_container_type>&& std::is_nothrow_move_assignable_v<Hash>&&
std::is_nothrow_move_assignable_v<KeyEqual>)) -> table& {
auto operator=(table&& other) noexcept(noexcept(std::is_nothrow_move_assignable_v<value_container_type> &&
std::is_nothrow_move_assignable_v<Hash> &&
std::is_nothrow_move_assignable_v<KeyEqual>)) -> table& {
if (&other != this) {
deallocate_buckets(); // deallocate before m_values is set (might have another allocator)
m_values = std::move(other.m_values);
Expand Down Expand Up @@ -1609,8 +1609,8 @@ class table : public std::conditional_t<is_map_v<T>, base_table_type_map<T>, bas
return do_erase_key(std::forward<K>(key));
}

void swap(table& other) noexcept(noexcept(std::is_nothrow_swappable_v<value_container_type>&&
std::is_nothrow_swappable_v<Hash>&& std::is_nothrow_swappable_v<KeyEqual>)) {
void swap(table& other) noexcept(noexcept(std::is_nothrow_swappable_v<value_container_type> &&
std::is_nothrow_swappable_v<Hash> && std::is_nothrow_swappable_v<KeyEqual>)) {
using std::swap;
swap(other, *this);
}
Expand Down

0 comments on commit ea7622e

Please sign in to comment.