|
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.
|