File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1173
1173
pointer-literal\br
1174
1174
user-defined-literal
1175
1175
\end {bnf }
1176
+ \begin {note }
1177
+ When appearing as an \grammarterm {expression},
1178
+ a literal has a type and a value category\iref {expr.prim.literal }.
1179
+ \end {note }
1176
1180
1177
1181
\rSec 2[lex.icon]{Integer literals}
1178
1182
1325
1329
the first type in the list in \tref {lex.icon.type }
1326
1330
corresponding to its optional \grammarterm {integer-suffix}
1327
1331
in which its value can be represented.
1328
- An \grammarterm {integer-literal} is a prvalue.
1329
1332
1330
1333
\begin {floattable }{Types of \grammarterm {integer-literal}s}{lex.icon.type}{l|l|l}
1331
1334
\topline
2160
2163
\pnum
2161
2164
\indextext {Boolean literal}%
2162
2165
The Boolean literals are the keywords \tcode {false} and \tcode {true}.
2163
- Such literals are prvalues and have type \tcode {bool}.
2166
+ Such literals have type \tcode {bool}.
2164
2167
2165
2168
\rSec 2[lex.nullptr]{Pointer literals}
2166
2169
2171
2174
\end {bnf }
2172
2175
2173
2176
\pnum
2174
- The pointer literal is the keyword \keyword {nullptr}. It is a prvalue of type
2177
+ The pointer literal is the keyword \keyword {nullptr}. It has type
2175
2178
\tcode {std::nullptr_t}.
2176
2179
\begin {note }
2177
2180
\tcode {std::nullptr_t} is a distinct type that is neither a pointer type nor a pointer-to-member type;
You can’t perform that action at this time.
0 commit comments