# Lower Bound

Computer Science Level 2

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?

×

Problem Loading...

Note Loading...

Set Loading...