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: 278
3.9 §4 says:
The object representation of an object of type
T
is the sequence of Nunsigned char
objects taken up by the object of typeT
, where N equalssizeof(T)
. The value representation of an object is the set of bits that hold the value of typeT
. 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.
Does "The value representation of an object" imply that values are always stored in objects?
What is the value representation of non-trivially copyable types?
© Stack Overflow or respective owner