foo(string & s) { s = "xyz"; } map<int,string> m; m[1] = "abc"; foo(m[1]); // <-- Is it ok? Will m[1] be "xyz" after this call?
谢谢.
(operator []返回reference)