Re:Clang emits memcpy for std::swap, which can introduce und...
by AnthonyMouse on Sunday April 24, 2016 @04:01PM
(#11561104)
It's quite common actually. Usually in the context of something like "swap element 'n' with the last element in this vector" without any check to see if 'n' is already the last element, because checking for that condition just to avoid a harmless no-op in the uncommon case is ugly and slower in the common case.
[ Parent
| on HN ]
There are no comments on this comment yet.