Hello anybody...
I have a question about the size of the objects.
Could anybody tell me what kind of information is stored in memory for a particular object?
Is it the object data (pointers, static etc.) along with pointers to each object members(i know the VTable is memorized in each object) stored or is it only the object data, with its VTable and the compiler determines the place of member implementation by the object type...
I really don't know this nither am i to sure about the way C++ compilers generally work, so does anybody know about this?
I'm asking this because when i look at a String object i get really scared... The STL approach provides a HUGE object and i think it would be an enormous waste of space to use a String object somewhere where a lot of them would be necessary.
Yet again, i think that i might be missing something, so pleas help me out... [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
I have a question about the size of the objects.
Could anybody tell me what kind of information is stored in memory for a particular object?
Is it the object data (pointers, static etc.) along with pointers to each object members(i know the VTable is memorized in each object) stored or is it only the object data, with its VTable and the compiler determines the place of member implementation by the object type...
I really don't know this nither am i to sure about the way C++ compilers generally work, so does anybody know about this?
I'm asking this because when i look at a String object i get really scared... The STL approach provides a HUGE object and i think it would be an enormous waste of space to use a String object somewhere where a lot of them would be necessary.
Yet again, i think that i might be missing something, so pleas help me out... [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...