From this documentation.
- a prvalue (“pure” rvalue) is an expression whose evaluation either
- computes the value of the operand of an operator or is a void expression (such prvalue has no result object), or
- initializes an object or a bit-field (such prvalue is said to have a result object). With the exception of decltype, all class and array prvalues have a result object even if it is discarded. The result object may be a variable, an object created by new-expression, a temporary created by temporary materialization, or a member thereof;
A bit field is an object with fixed width in bits. (From here.)
However it would seem to me, given the context of the above, that the word "bit-field" should be interpreted as any data stored in memory, such as a trivial type (int, double, etc), an array or a struct.
In other words I do not understand why en.cppreference.com explicitly differentiate between "object" and "bit-field".
If "bit-field" is intended to be interpreted as literally identifier(optional) attr(optional) : size then since any fundamental type is also a bit field, why was the word "bit-field" used here instead of "object" or "fundamental/trivial data type".
Reason for asking is I have read this page before many times but always found the use of the word "bit-field" confusing. Not because I didn't know what a bit field was, but because I didn't understand the significance of the use of the phrase here.