object representation and value representation

Posted by FredOverflow on Stack Overflow See other posts from Stack Overflow or by FredOverflow
Published on 2010-06-09T11:46:53Z Indexed on 2010/06/09 11:52 UTC
Read the original article Hit count: 260

Filed under:
|
|

3.9 §4 says:

The object representation of an object of type T is the sequence of N unsigned char objects taken up by the object of type T, where N equals sizeof(T). The value representation of an object is the set of bits that hold the value of type T. For trivially copyable types, the value representation is a set of bits in the object representation that determines a value, which is one discrete element of an implementation-defined set of values.

  1. Does "The value representation of an object" imply that values are always stored in objects?

  2. What is the value representation of non-trivially copyable types?

© Stack Overflow or respective owner

Related posts about c++

Related posts about object