|
5271 | 5271 | explicitly converted to type
|
5272 | 5272 | \cv{}~\keyword{void}\iref{expr.type.conv,expr.static.cast,expr.cast}.
|
5273 | 5273 | An expression of type \cv{}~\keyword{void} shall
|
5274 |
| -be used only as an expression statement\iref{stmt.expr}, as an operand |
5275 |
| -of a comma expression\iref{expr.comma}, as a second or third operand |
5276 |
| -of \tcode{?:}\iref{expr.cond}, as the operand of |
5277 |
| -\keyword{typeid}, \keyword{noexcept}, or \keyword{decltype}, as |
5278 |
| -the expression in a \keyword{return} statement\iref{stmt.return} for a function |
5279 |
| -with the return type \cv{}~\keyword{void}, or as the operand of an explicit conversion |
5280 |
| -to type \cv{}~\keyword{void}. |
| 5274 | +be used only as |
| 5275 | +\begin{itemize} |
| 5276 | +\item an expression statement\iref{stmt.expr}, |
| 5277 | +\item the expression in a \keyword{return} statement\iref{stmt.return} |
| 5278 | +for a function with the return type \cv{}~\keyword{void}, |
| 5279 | +\item an operand of a comma expression\iref{expr.comma}, |
| 5280 | +\item the second or third operand of \tcode{?:}\iref{expr.cond}, |
| 5281 | +\item the operand of a \keyword{typeid} expression\iref{expr.typeid}, |
| 5282 | +\item the operand of a \keyword{noexcept} operator\iref{expr.unary.noexcept}, |
| 5283 | +\item the operand of a \keyword{decltype} specifier\iref{dcl.type.decltype}, or |
| 5284 | +\item the operand of an explicit conversion to type \cv{}~\keyword{void}. |
| 5285 | +\end{itemize} |
5281 | 5286 |
|
5282 | 5287 | \pnum
|
5283 | 5288 | The types denoted by \cv~\tcode{std::nullptr_t} are distinct types.
|
|
0 commit comments