I was checking an answer to a question posted on stackoverflow:
Answer to: C++, Sort One Vector Based On Another One
The answer has this piece of code:
std::sort(people.begin(), people.end(),
[](const auto& i, const auto& j) { return i.Score < j.Score; } );
I just want to understand why "[]" is put before the function here.
Thanks!