Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 31d6168

Browse files
jensmaurertkoeppe
authored andcommitted
[expr.rel] Clarify auxiliary partial ordering (#1977)
1 parent 720b069 commit 31d6168

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/expressions.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5073,27 +5073,27 @@
50735073
After conversions, the operands shall have the same type.
50745074

50755075
\pnum
5076-
Comparing unequal pointers to objects%
5076+
The result of comparing unequal pointers to objects%
50775077
\footnote{An object that is not an array element is considered to belong to a
50785078
single-element array for this purpose; see~\ref{expr.unary.op}.
50795079
A pointer past the last element of an array \tcode{x} of $n$ elements
50805080
is considered to be equivalent to a pointer to a hypothetical element
50815081
$\mathtt{x[}n\mathtt{]}$ for this purpose; see~\ref{basic.compound}.}
5082-
is defined as follows:
5082+
is defined in terms of a partial order consistent with the following rules:
50835083

50845084
\begin{itemize}
50855085
\item If two pointers point to different elements of the same array, or to
50865086
subobjects thereof, the pointer to the element with the higher subscript
5087-
compares greater.
5087+
is required to compare greater.
50885088

50895089
\item If two pointers point to different non-static data members of the same
50905090
object, or to subobjects of such members, recursively,
5091-
the pointer to the later declared member compares greater provided
5091+
the pointer to the later declared member is required to compare greater provided
50925092
the two members have the same access control\iref{class.access},
50935093
neither member is a subobject of zero size,
50945094
and their class is not a union.
50955095

5096-
\item Otherwise, neither pointer compares greater than the other.
5096+
\item Otherwise, neither pointer is required to compare greater than the other.
50975097

50985098
\end{itemize}
50995099

0 commit comments

Comments
 (0)