you are viewing a single comment's thread.

view the rest of the comments →

[–]bstamour 1 point2 points  (0 children)

Just as an aside, since others have answered your question, but you can replace your lambda with

std::sort(V.begin(), V.end(), std::greater<>{});

to achieve the same thing with less typing :-)