☆─────────────────────────────────────☆
JungleMonkey (MonkeyInTheJungle) 于 (Mon May 25 11:46:11 2009) 提到:
能否在STL insert元素的时候就得到指向该元素的指针?以后就可以keep track of 该
元素?
非常感谢。
my_list.push_back(my_element);
my_map[key]=my_element;
☆─────────────────────────────────────☆
JungleMonkey (MonkeyInTheJungle) 于 (Mon May 25 11:53:23 2009) 提到:
My problem is that actually I have maps of lists, I want to be able to
keep track of the address of the very element that has been inserted
last...
☆─────────────