Skip to content

Commit 362a2b1

Browse files
committed
Tweak P/R of 4123
1 parent 8c9f49b commit 362a2b1

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

xml/issue4123.xml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ template&lt;<i>container-compatible-range</i>&lt;T&gt; R&gt;
132132
The complexity is linear in the number of elements inserted plus
133133
the lesser of the distances to the beginning and end of the deque.
134134
Inserting a single element at either the beginning or end of a deque
135-
always takes constant time and causes
136-
<del>a single call to a constructor of T</del>
137-
<ins>construction of a single object of type `T`</ins>.
135+
always takes constant time and
136+
<del>causes a single call to a constructor of T</del>
137+
<ins>constructs a single object of type `T`</ins>.
138138
</p>
139139
<p>
140140
-3- <i>Remarks</i>:
@@ -218,9 +218,10 @@ linear in `n` and the number of <del>calls to the destructor of</del>
218218
<blockquote>
219219
<p>
220220
-1- <i>Complexity</i>:
221-
Insertion of a single element into a list takes constant time and exactly one
221+
Insertion of a single element into a list takes constant time and
222+
<ins>constructs</ins> exactly one
222223
<del>call to a constructor of `T`</del>
223-
<ins>object of type `T` is constructed</ins>
224+
<ins>object of type `T`</ins>.
224225
Insertion of multiple elements into a list is linear in the number of
225226
elements inserted and the number of
226227
<del>calls to the copy constructor or move constructor of `T`</del>
@@ -270,17 +271,17 @@ using the specified allocator.
270271
</p>
271272
<p>
272273
-10- <i>Complexity</i>:
273-
<del>Makes only <i>N</i> calls to the copy constructor of</del>
274-
<ins>Initializes exactly <i>N</i> objects of type</ins>
275-
`T`
274+
<del>Makes only <i>N</i> calls to the copy constructor of `T`</del>
275+
<ins>Initializes exactly <i>N</i> elements</ins>
276+
276277
(where <i>N</i> is the distance between `first` and `last`)
277278
and no reallocations if iterators `first` and `last` are of forward,
278279
bidirectional, or random access categories.
279280
It <del>makes</del> <ins>initializes</ins> order
280281
<i>N</i>
281-
<del>calls to the copy constructor of</del>
282-
<ins>objects of type</ins>
283-
`T` and <ins>performs</ins>
282+
<del>calls to the copy constructor of `T`</del>
283+
<ins>elements</ins>
284+
and <ins>performs</ins>
284285
order log <i>N</i> reallocations if they are just input iterators.
285286
</p>
286287
<pre>template&lt;<i>container-compatible-range</i>&lt;T&gt; R&gt;
@@ -297,8 +298,8 @@ successive iterators of `rg`, where <i>N</i> is `ranges::distance(rg)`.
297298
Performs no reallocations if `R` models `ranges::forward_range` or
298299
`ranges::sized_range`; otherwise, performs order log <i>N</i> reallocations
299300
and <ins>initializes</ins> order <i>N</i>
300-
<del>calls to the copy or move constructor of</del>
301-
<ins>objects of type</ins> `T`.
301+
<del>calls to the copy or move constructor of `T`</del>
302+
<ins>elements</ins>.
302303
</p>
303304
</blockquote>
304305
</li>

0 commit comments

Comments
 (0)