On 16 Aug 2005 19:55:21 -0700, "EventHelix.com" <>
wrote in comp.lang.c++:
> The memory representation of a class is undefined in C++. Memory
> representation for structures (with public members only) is contiguous.
....and memory representation for all other C++ objects, like scalars,
pointers, floating point types, and arrays of anything, is contiguous.
As is dynamically allocated memory.
> The following articles might help:
>
> http://www.eventhelix.com/RealtimeMa...erformance.htm
> http://www.eventhelix.com/RealtimeMa...rformance2.htm
> http://www.eventhelix.com/RealtimeMa...ndOrdering.htm
Remember, the C++ standard specifically defines even the lowly int as
an object. The term "object" in C++ has nothing at all to do with
"object oriented". It has exactly the same definition as it did in
ISO C90.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html