Lower_bound and upper_bound

What is the use of lower_bound() and upper_bound() functions in cpp. Explain with use cases and examples. Thank you.

See these two links…

http://www.cplusplus.com/reference/algorithm/lower_bound/
http://www.cplusplus.com/reference/algorithm/upper_bound/