J
Jan
Hi there,
yes im a STL newbie, but thanks for replying.
I want to get a reference to an item included in a STL map. e.g.:
map<type1, type2> myMap;
.....
type2& aName = myMap[type1];
.....
what's wrong with this ;-) ? I don't want to have a copy of type2. only
a
reference to it (and if type1 is not in the map, it should be
automatically be
created)
thanks,
Jan
yes im a STL newbie, but thanks for replying.
I want to get a reference to an item included in a STL map. e.g.:
map<type1, type2> myMap;
.....
type2& aName = myMap[type1];
.....
what's wrong with this ;-) ? I don't want to have a copy of type2. only
a
reference to it (and if type1 is not in the map, it should be
automatically be
created)
thanks,
Jan