Lower Bound

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?

Both are the same B A

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.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...