what is the diffrence between sort and stable_sort i am getting same result in both
stable_sort(begin(arr), end(arr), x{
return abs(a - x) < abs(b - x);
}); can someone explain this what that [x] means here
Rajanikant HawaldarPosted Jul 4, 2021, 8:53 AM