File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 56025602is an incomplete type that cannot be completed; such a type has
56035603an empty set of values. It is used as the return
56045604type for functions that do not return a value.
5605- An expression of type \cv {}~ \keyword {void} shall
5606- be used only as
5605+ \begin { note }
5606+ An expression of type \cv {}~ \keyword {void} can be used as
56075607\begin {itemize }
56085608\item an expression statement\iref {stmt.expr },
56095609\item the expression in a \keyword {return} statement\iref {stmt.return }
56105610for a function with the return type \cv {}~\keyword {void},
56115611\item an operand of a comma expression\iref {expr.comma },
5612+ \item the operand of a parenthesized expression\iref {expr.prim.paren },
5613+ \item a requirement in a \grammarterm {requires-expression}\iref {expr.prim.req.general },
56125614\item the second or third operand of \tcode {?:}\iref {expr.cond },
56135615\item the operand of a \keyword {typeid} expression\iref {expr.typeid },
56145616\item the operand of a \keyword {noexcept} operator\iref {expr.unary.noexcept },
56155617\item the operand of a \keyword {decltype} specifier\iref {dcl.type.decltype }, or
56165618\item the operand of an explicit conversion to type
56175619\cv {}~\keyword {void}\iref {expr.type.conv,expr.static.cast,expr.cast }.
56185620\end {itemize }
5621+ \end {note }
56195622
56205623\pnum
56215624The types denoted by \cv ~\tcode {std::nullptr_t} are distinct types.
You can’t perform that action at this time.
0 commit comments