You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Insertion sort is faster than quick sort for small inputs. I think here gcc uses insertion sort instead of quick sort, which requires no swapping. Give your vector more elements (more than 20) and check if swap is called.
ex13.31 answer, swap haven't been called.

sort called operator < which has been override, but didn't call the swap function.
@pezy @Mooophy
The text was updated successfully, but these errors were encountered: