I want to get the iterator for the element I'm testing for in binary-search
. But it only returns a bool
indicating whether it found the value or not. How to get the iterator?
You want either lower_bound, upper_bound, or equal_range.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With