unordered_set&
operator=(unordered_set&& __x)
{
- // NB: DR 675.
- this->clear();
- this->swap(__x);
+ if (this != &__x)
+ {
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
+ }
return *this;
}
unordered_multiset&
operator=(unordered_multiset&& __x)
{
- // NB: DR 675.
- this->clear();
- this->swap(__x);
+ if (this != &__x)
+ {
+ // NB: DR 675.
+ this->clear();
+ this->swap(__x);
+ }
return *this;
}