How to update recently entered element in std::vector>?
How can one update the value for pairs in any vector class of pair type? Example : V.push_back(make_pair(1, 3)); If I wish to update 3 to say 5 or something, how do I achieve that?