4/16/2008

Lower Bound Search

Template function lower_bound is work binary search.
STL provides this function.

The forth argument is function pointer to compare two element in STL's specifications.

If When I use this function with basic type and my class has compare operator, I cut the forth argument.

But, Visual Studio 2003 points the way is error.

I wonder it.

No comments: