Hello,
got a short question about the sort algorithm of the list container in the
Standard Template Library:
Can I use the sort algorithm with another parameter to sort by? Sort uses
the operator< of the elements it consists of to sort the list. Now I´m
interested to sort the elements by another < relation (I´m dealing with
multivariate polynomials). Do I have to change the operator to sort the way
it is most often needed and have to sort by hand for the less often cases or
is there a way to tell sort by which relation it should sort the list?
Thank you, Greetings, Hagen.
got a short question about the sort algorithm of the list container in the
Standard Template Library:
Can I use the sort algorithm with another parameter to sort by? Sort uses
the operator< of the elements it consists of to sort the list. Now I´m
interested to sort the elements by another < relation (I´m dealing with
multivariate polynomials). Do I have to change the operator to sort the way
it is most often needed and have to sort by hand for the less often cases or
is there a way to tell sort by which relation it should sort the list?
Thank you, Greetings, Hagen.
Comment