Код: Выделить всё
static inline std::string <rim(std::string &s) {
s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun(std::isspace))));
return s;
}
< /code>
, как представлено в этом ответе.error C2039: 'ptr_fun': is not a member of 'std'
Подробнее здесь: https://stackoverflow.com/questions/449 ... nt-for-c17
Мобильная версия