Been programming for 1 week. I have vector<tuple<string, string, T>> edgesVector. Which contains two strings and an INT. How do I delete a tuple within the vector that contains two specific strings?
remove_edge(const string& u, const string& v) {
for (int i = 0; i<edgesVector.size(); i++ ) {
if (get<0>(edgesVector[i]) == u && get<1>(edgesVector[i]) == v){
edgesVector.erase(i);
}
if (get<1>(edgesVector[i]) == u && get<0>(edgesVector[i])== v){
edgesVector.erase(i);
}
}
}