Remove unnecessary self-alias checks in copy-assignment operators

This commit is contained in:
Christian Mazakas
2022-10-04 14:49:40 -07:00
parent 7dfcdc6da8
commit e9c3ed1531
2 changed files with 2 additions and 6 deletions

View File

@ -101,9 +101,7 @@ namespace boost {
unordered_flat_map& operator=(unordered_flat_map const& other)
{
if (this != &other) {
table_ = other.table_;
}
table_ = other.table_;
return *this;
}

View File

@ -100,9 +100,7 @@ namespace boost {
unordered_flat_set& operator=(unordered_flat_set const& other)
{
if (this != &other) {
table_ = other.table_;
}
table_ = other.table_;
return *this;
}