[vector] Implement move assignment using swap
This commit is contained in:
parent
eeda2c549d
commit
18a078f968
|
@ -110,11 +110,7 @@ struct hb_vector_t
|
||||||
}
|
}
|
||||||
hb_vector_t& operator = (hb_vector_t &&o)
|
hb_vector_t& operator = (hb_vector_t &&o)
|
||||||
{
|
{
|
||||||
fini ();
|
hb_swap (*this, o);
|
||||||
allocated = o.allocated;
|
|
||||||
length = o.length;
|
|
||||||
arrayZ = o.arrayZ;
|
|
||||||
o.init ();
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue