I want to provide a member function for the "comp" parameter for an STL algorithm such as lower_bound (..., Compare comp). The comp () function refers to a non-stationary element, so it must be a non-stationary member, but the type of non-static pointer of a user function is different from the type of a regular function pointer.
What is the best way to solve this problem?
source share