I have browsed through most of the questions on the comparison between qsort vs sort in C++. I wanted to just ask if there were any cases where you would prefer qsort over sort?
Probably none, std::sort is type safe, plus it can inline the comparator function. The only distinctive strong point of qsort is that it's available in plain C.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With