|
|
|
|
|
by CJefferson
1607 days ago
|
|
I agree with the first part -- I implemented the movable std::sort for g++, and I found it very hard to convince the compiler to keep the pivot in a register (although I did write it over 10 years ago, maybe the compiler would do a better job by now!) |
|
Here is an implementation. This should work with all types. Unfortunate I had to annotate with restrict, but a small price to pay.