I made a custom comparator for the lower_bound function, but it is working as usual.
I wanted the function to return the greatest value less than the key. So I made the following comparator
bool comparator(int a, int b)
{
return a>b };
But still the function shows the least value greater than or equal to the key. Please help.