|
3610 | 3610 | \defnx{incompletely-defined object type}{object type!incompletely-defined}.% |
3611 | 3611 | \footnote{The size and layout of an instance of an incompletely-defined |
3612 | 3612 | object type is unknown.} |
3613 | | -Incompletely-defined object types and \cv\ \tcode{void} are |
| 3613 | +Incompletely-defined object types and \cv{} \tcode{void} are |
3614 | 3614 | \defnx{incomplete types}{type!incomplete}~(\ref{basic.fundamental}). |
3615 | 3615 | Objects shall not be defined to have an |
3616 | 3616 | incomplete type. |
|
3665 | 3665 | \pnum |
3666 | 3666 | \indextext{object~type}% |
3667 | 3667 | An \defn{object type} is a (possibly cv-qualified) type that is not |
3668 | | -a function type, not a reference type, and not \cv\ \tcode{void}. |
| 3668 | +a function type, not a reference type, and not \cv{} \tcode{void}. |
3669 | 3669 |
|
3670 | 3670 | \pnum |
3671 | 3671 | Arithmetic types~(\ref{basic.fundamental}), enumeration types, pointer |
|
3930 | 3930 |
|
3931 | 3931 | \pnum |
3932 | 3932 | \indextext{type!\idxcode{void}}% |
3933 | | -A type \cv\ \tcode{void} |
| 3933 | +A type \cv{} \tcode{void} |
3934 | 3934 | is an incomplete type that cannot be completed; such a type has |
3935 | 3935 | an empty set of values. It is used as the return |
3936 | 3936 | type for functions that do not return a value. Any expression can be |
3937 | | -explicitly converted to type \cv\ \tcode{void}~(\ref{expr.cast}). |
3938 | | -An expression of type \cv\ \tcode{void} shall |
| 3937 | +explicitly converted to type \cv{} \tcode{void}~(\ref{expr.cast}). |
| 3938 | +An expression of type \cv{} \tcode{void} shall |
3939 | 3939 | be used only as an expression statement~(\ref{stmt.expr}), as an operand |
3940 | 3940 | of a comma expression~(\ref{expr.comma}), as a second or third operand |
3941 | 3941 | of \tcode{?:}~(\ref{expr.cond}), as the operand of |
3942 | 3942 | \tcode{typeid}, \tcode{noexcept}, or \tcode{decltype}, as |
3943 | 3943 | the expression in a return statement~(\ref{stmt.return}) for a function |
3944 | | -with the return type \cv\ \tcode{void}, or as the operand of an explicit conversion |
3945 | | -to type \cv\ \tcode{void}. |
| 3944 | +with the return type \cv{} \tcode{void}, or as the operand of an explicit conversion |
| 3945 | +to type \cv{} \tcode{void}. |
3946 | 3946 |
|
3947 | 3947 | \pnum |
3948 | 3948 | A value of type \tcode{std::nullptr_t} is a null pointer |
|
3968 | 3968 | \item \defnx{functions}{type!function}, which have parameters of given types and return |
3969 | 3969 | \tcode{void} or references or objects of a given type,~\ref{dcl.fct}; |
3970 | 3970 |
|
3971 | | -\item \defnx{pointers}{type!pointer} to \cv\ \tcode{void} or objects or functions (including |
| 3971 | +\item \defnx{pointers}{type!pointer} to \cv{} \tcode{void} or objects or functions (including |
3972 | 3972 | static members of classes) of a given type,~\ref{dcl.ptr}; |
3973 | 3973 |
|
3974 | 3974 | \item % |
|
4013 | 4013 |
|
4014 | 4014 | \pnum |
4015 | 4015 | \indextext{terminology!pointer}% |
4016 | | -The type of a pointer to \cv\ \tcode{void} or a pointer to an object type is |
| 4016 | +The type of a pointer to \cv{} \tcode{void} or a pointer to an object type is |
4017 | 4017 | called an \defn{object pointer type}. \begin{note} A pointer to \tcode{void} |
4018 | 4018 | does not have a pointer-to-object type, however, because \tcode{void} is not |
4019 | 4019 | an object type. \end{note} The type of a pointer that can designate a function |
|
4108 | 4108 | \tcode{void} |
4109 | 4109 | can be used to point to objects of |
4110 | 4110 | unknown type. Such a pointer shall be able to hold any object pointer. |
4111 | | -An object of type \cv\ |
| 4111 | +An object of type \cv{} |
4112 | 4112 | \tcode{void*} shall have the same representation and alignment |
4113 | | -requirements as \cv\ \tcode{char*}. |
| 4113 | +requirements as \cv{} \tcode{char*}. |
4114 | 4114 |
|
4115 | 4115 | \rSec2[basic.type.qualifier]{CV-qualifiers} |
4116 | 4116 |
|
|
4187 | 4187 | represents an arbitrary set of cv-qualifiers, i.e., one of |
4188 | 4188 | \{\tcode{const}\}, \{\tcode{volatile}\}, \{\tcode{const}, |
4189 | 4189 | \tcode{volatile}\}, or the empty set. |
4190 | | -For a type \cv\ \tcode{T}, the \defnx{top-level cv-qualifiers}{cv-qualifier!top-level} |
| 4190 | +For a type \cv{} \tcode{T}, the \defnx{top-level cv-qualifiers}{cv-qualifier!top-level} |
4191 | 4191 | of that type are those denoted by \cv. |
4192 | 4192 | \begin{example} |
4193 | 4193 | The type corresponding to the \grammarterm{type-id} |
|
0 commit comments