View Single Post
Old May 11th, 2008, 3:18 PM   #3
mbd
Programmer
 
Join Date: Nov 2007
Posts: 86
Rep Power: 1 mbd is on a distinguished road
Re: simple questions about maps

using the operator[] to access a key in a map will create that key. the value returned will depend on the value type. it will use the default constructor to create the value type. if a map contains pointers, it will not automatically delete the objects referenced by those pointers.
mbd is offline   Reply With Quote