Compare function

when we write b>a in the bool compare function then the array arranges in the ascending order and when we write a>b then the array arranges in the descending order. I am confused about how to use this technique in STL such as lower_bound. I am not getting the logic behind this. pls explain

hey its work in lowerbound is not that much . in lowerbound if you use compare and do a less than eq b it just converts to upperbound so no use. @jatin_wadhwa
i hope its clear if yes dont forget to mark it as resolved :smiley: