There are two different ways to find the lower bound of a value in a set in C++11.
A.
set<int>::iterator it = lower_bound(S.begin(), S.end(),34);
B.
set<int>::iterator it = S.lower_bound(34);
Which of the above is preferred?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
No explanations have been posted yet. Check back later!