mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
Remove unnecessary self-alias checks in copy-assignment operators
This commit is contained in:
@ -101,9 +101,7 @@ namespace boost {
|
|||||||
|
|
||||||
unordered_flat_map& operator=(unordered_flat_map const& other)
|
unordered_flat_map& operator=(unordered_flat_map const& other)
|
||||||
{
|
{
|
||||||
if (this != &other) {
|
table_ = other.table_;
|
||||||
table_ = other.table_;
|
|
||||||
}
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,9 +100,7 @@ namespace boost {
|
|||||||
|
|
||||||
unordered_flat_set& operator=(unordered_flat_set const& other)
|
unordered_flat_set& operator=(unordered_flat_set const& other)
|
||||||
{
|
{
|
||||||
if (this != &other) {
|
table_ = other.table_;
|
||||||
table_ = other.table_;
|
|
||||||
}
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user