// Check if the line starts with //, the program then ignores it but
// it does display it to console and results.txt
// Also skips calculating blank lines
if (find_if(buffer.begin(), buffer.end(), std::not1(std::ptr_fun< int, int > (std::isspace)) ) == buffer.end() ||
(buffer.size() >= 2 && buffer[0] == '/' && buffer[1] == '/') )
continue; // Make it jump back to the beginning
I know std::ptr_fun makes an instance of std::isspace that works with std::not1, but I know how std::ptr_fun works with the arguments. I'm guessing the overloaded version of std::isspace with an argument of 2 ints is selected? Can someone clarify this function for me?