I am using std::ptr_fun as follows:
std::ptr_fun
static inline std::string <rim(std::string &s) { s.erase(s.begin(), std::find_if(s.begin(), s.end(
According to cppreference, std::ptr_fun is deprecated since C++11 and discontinued since C++17.
Similarly, std::not1 is deprecated since C++17.
So best don't use either, but a lambda (as explained in other answers).