In the following sort function of C++ how the 3rd argument is working?
sort(a.begin(), a.end(), [](int x, int y) { return x % 2 < y % 2; });
How 3rd argument of sort function works in C++?
sort(a.begin(), a.end(), [](int x, int y) { return x % 2 < y % 2; });