Hi guyz..
I just wanna ask about the size allocated for the objects instantiated from a class container in the STL, for example when I write :
I get the result 24, or when i write:Code:cout<<sizeof(list<int>);
I get the result 20, whatever the type of the vector or the list (or any other containers) is set : int , char, double …. I will always get the same.. why!!!Code:cout<<sizeof(vector<int>);
So if I wanna actually know the size of my STL container object .. how would I get it?!!