I am not using boost libraries. How can i do this using STL?
class Files
{
private:
bool isSame(FileID f1, FileId f2)
{
if(f1.getId()==f2.getId())
return true;
return false;
}
public:
vector<FileId> mod_files;
void update()
{
FildId f = getFileId();
vector<FildId>::const_iterator found = find_if(mod_files.begin(), mod_files.end(), ???);
}
};
I would like to pass isSame as the third argument to find_if function, and bind "f" to the isSame's second argument.