A
alien.0101
Hi
I want to know the memory occupied by STL Map, Is there a way to do
that.
I have written a sample application and adding value to map doesnot
change size
map<int,int> mapInt2Int;
mapInt2Int[1]=2;
mapInt2Int[2]=2;
mapInt2Int[3]=2;
mapInt2Int[4]=2;
mapInt2Int[5]=2;
mapInt2Int[6]=2;
size_t sz= sizeof(mapInt2Int);
How can I find how much bytes does the map uses.
My main requirement is to store the map as a byte blob in database and
rettrieve back.
any thoughts???
I want to know the memory occupied by STL Map, Is there a way to do
that.
I have written a sample application and adding value to map doesnot
change size
map<int,int> mapInt2Int;
mapInt2Int[1]=2;
mapInt2Int[2]=2;
mapInt2Int[3]=2;
mapInt2Int[4]=2;
mapInt2Int[5]=2;
mapInt2Int[6]=2;
size_t sz= sizeof(mapInt2Int);
How can I find how much bytes does the map uses.
My main requirement is to store the map as a byte blob in database and
rettrieve back.
any thoughts???