C++ STL Quiz 1. Q7. stl lower_bound in set

The lower_bound(15) will return an iterator pointing to end of set. So how come *it is 6?

hell0 @subhamjaiswal885

yeah right . it will return set.end().
and in case of set , the value of set.end() is the number of elements the contains.
in question there are 6 elements in the set thats why output is 6

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.