Replace value in TMap

Hi ROOTers,

I have what is probably a trivial question. I have a simple TMap and I want to change the value of one of the key/value pairs. So,

root [0] TMap m
root [1] Value v(0)
root [2] m.Add(&v,&v)
root [3] TPair *pair = (TPair*)m.FindObject(&v)
root [4] Value *v2 = (Value*)pair->Value()

If I change the value of the data in v2, will the original key/value pair be modified or is v2 just a copy of the data in m? If it’s a copy, what’s the right way to change the data in the map?

Thanks in advance,