Using binary_search and count

When we use binary_search, if the value is found, can we make function returns the position of that value?
Them same question with count function.
Thank you for your help :)
use lower_bound
Them same question with count function.
? Do you want a list of the positions?
Yes, a list of the positions.
Thanks for your help :)
Topic archived. No new replies allowed.