Skip to content

Commit c08cbe9

Browse files
Dawn Perchikzygoloid
authored andcommitted
LWG3017 list splice functions should use addressof
Removed redundant parens around expressions.
1 parent f817867 commit c08cbe9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/containers.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4240,7 +4240,7 @@
42404240
\requires \tcode{position} is \tcode{before_begin()} or is a dereferenceable
42414241
iterator in the range \range{begin()}{end()}.
42424242
\tcode{get_allocator() == x.get_allocator()}.
4243-
\tcode{\&x != this}.
4243+
\tcode{addressof(x) != this}.
42444244

42454245
\pnum
42464246
\effects Inserts the contents of \tcode{x} after
@@ -4837,7 +4837,7 @@
48374837
\begin{itemdescr}
48384838
\pnum
48394839
\requires
4840-
\tcode{\&x != this}.
4840+
\tcode{addressof(x) != this}.
48414841

48424842
\pnum
48434843
\effects
@@ -5041,7 +5041,7 @@
50415041

50425042
\pnum
50435043
\effects
5044-
If \tcode{(\&x == this)} does nothing; otherwise, merges the two sorted ranges \tcode{[begin(),
5044+
If \tcode{addressof(x) == this}, does nothing; otherwise, merges the two sorted ranges \tcode{[begin(),
50455045
end())} and \tcode{[x.\brk{}begin(), x.end())}. The result is a range in which the elements
50465046
will be sorted in non-decreasing order according to the ordering defined by \tcode{comp}; that
50475047
is, for every iterator \tcode{i}, in the range other than the first, the condition
@@ -5052,7 +5052,7 @@
50525052
\tcode{x}.
50535053

50545054
\pnum
5055-
\remarks Stable\iref{algorithm.stable}. If \tcode{(\&x != this)} the range \tcode{[x.begin(), x.end())}
5055+
\remarks Stable\iref{algorithm.stable}. If \tcode{addressof(x) != this}, the range \tcode{[x.begin(), x.end())}
50565056
is empty after the merge.
50575057
No elements are copied by this operation. The behavior is undefined if
50585058
\tcode{get_allocator() != x.get_allocator()}.
@@ -5062,7 +5062,7 @@
50625062
At most
50635063
\tcode{size() + x.size() - 1}
50645064
applications of \tcode{comp} if
5065-
\tcode{(\&x != this)};
5065+
\tcode{addressof(x) != this};
50665066
otherwise, no applications of \tcode{comp} are performed.
50675067
If an exception is thrown other than by a comparison there are no effects.
50685068
\end{itemdescr}

0 commit comments

Comments
 (0)