Comment by groundzeros2015
Comment by groundzeros2015 4 hours ago
If the type is trivial you don’t swap, if it is you do.
There were already special cases for this in C++98 in order to optimize for when memcpy and memove could be invoked.
Comment by groundzeros2015 4 hours ago
If the type is trivial you don’t swap, if it is you do.
There were already special cases for this in C++98 in order to optimize for when memcpy and memove could be invoked.