|
simple questions about maps
sorry to ask such a simple question, but....
what happens when you try to retrieve the value from a key that was never inserted into a map container?
also, if i delete a map container and all the values are pointers, will the referenced objects be deleted too?
i would just test this out normally, but i'm having 'technical issues' with my main comp and the one i'm currently using is prehistoric.
also, another Q:
somewhat concerning the assignment operator and more so with custom data structures.
in the situation of a data structure object being assigned the value of another data structure object, what would happen if the left-hand object returned a null value? what if the right-hand object was returned a null value?
sorry if i'm being too vague, i'll provide more details if necessary.
|