This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
The C++ standard guarantees that the members of a class or struct appear in memory in the same order as they are declared. Nonstatic data members of a (non-union) class with the same access control are allocated so that later members have higher addresses within a class object. The order of allocation of non-static data members with different access control is unspecified. Implementation alignment…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.