Why didn't we use lower_case stl instead of creating this function for first occurrence?

Previously we studied about the stl lower_bound and upper_bound for the same function. So do we do need this?
Is it more efficient?

You can use any method to find the occurances. But if you create a user defined function then you can consider multiple cases as well . In terms of time both works same

Multiple cases as in?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.