Re:Changing std:sort at Google’s scale and beyond
by account42 on Friday April 22, 2022 @04:52AM
(#31119520)
Technically the list is not being modified but the comparison operator is dynamically determining the order of elements when the sorting algorithm checks them. This is done in a way so that the order of pairs that have already been checked previously remains fixed and it results in a valid totally ordered comparison operator in the end - but the order it ends up with depends on the sorting algorithm.
[ Parent
| on HN ]
There are no comments on this comment yet.