I have a map like
typedef map<int32_t,std::vector<int32_t>> myMap
I have added a value in vector with respect to the key like
myMap[somePointer->getVal()].push_back(Id1);
myMap[somePointer->getVal()].push_back(Id2);
myMap[somePointer->getVal()].push_back(Id3);
myMap[somePointer->getVal()].push_back(Id4);
What if I want to delete a value from the vector for the key?
I tried doing
myMap[somePointer->getVal()].erase(Id1)
But with this compiler cries with errors.