I have a class representing a user called Nick and I want to use std::find_if on it, where I want to find if the userlist vector has an object incl
Nick
std::find_if
If you are using C++0X you can use a simple lambda expression
std::string username = "Nicholas"; std::find_if(userlist.begin(), userlist.end(), [username](Nick const& n){ return n.username == username; })