sizeof map

I have a map to which I keep adding entries. The tnries that I add are objects of a different class whose size is not fixed. How do I find out the size (in memory) of the map at run time.
[187 byte] By [rKarthik] at [2007-12-16]
# 1
There is no way to find out the complete memory usage of the map. You can iterate to you entries and query them how much memory they consume if you implemented such a property.

The map itself uses its own memory and you have no way to make any assumptions about the memory it will consume.

MartinRichter at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ Language...