Skip to content

Commit

Permalink
Tweak P/R of 4123
Browse files Browse the repository at this point in the history
  • Loading branch information
jwakely committed Dec 6, 2024
1 parent 8c9f49b commit 362a2b1
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions xml/issue4123.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ template&lt;<i>container-compatible-range</i>&lt;T&gt; R&gt;
The complexity is linear in the number of elements inserted plus
the lesser of the distances to the beginning and end of the deque.
Inserting a single element at either the beginning or end of a deque
always takes constant time and causes
<del>a single call to a constructor of T</del>
<ins>construction of a single object of type `T`</ins>.
always takes constant time and
<del>causes a single call to a constructor of T</del>
<ins>constructs a single object of type `T`</ins>.
</p>
<p>
-3- <i>Remarks</i>:
Expand Down Expand Up @@ -218,9 +218,10 @@ linear in `n` and the number of <del>calls to the destructor of</del>
<blockquote>
<p>
-1- <i>Complexity</i>:
Insertion of a single element into a list takes constant time and exactly one
Insertion of a single element into a list takes constant time and
<ins>constructs</ins> exactly one
<del>call to a constructor of `T`</del>
<ins>object of type `T` is constructed</ins>
<ins>object of type `T`</ins>.
Insertion of multiple elements into a list is linear in the number of
elements inserted and the number of
<del>calls to the copy constructor or move constructor of `T`</del>
Expand Down Expand Up @@ -270,17 +271,17 @@ using the specified allocator.
</p>
<p>
-10- <i>Complexity</i>:
<del>Makes only <i>N</i> calls to the copy constructor of</del>
<ins>Initializes exactly <i>N</i> objects of type</ins>
`T`
<del>Makes only <i>N</i> calls to the copy constructor of `T`</del>
<ins>Initializes exactly <i>N</i> elements</ins>

(where <i>N</i> is the distance between `first` and `last`)
and no reallocations if iterators `first` and `last` are of forward,
bidirectional, or random access categories.
It <del>makes</del> <ins>initializes</ins> order
<i>N</i>
<del>calls to the copy constructor of</del>
<ins>objects of type</ins>
`T` and <ins>performs</ins>
<del>calls to the copy constructor of `T`</del>
<ins>elements</ins>
and <ins>performs</ins>
order log <i>N</i> reallocations if they are just input iterators.
</p>
<pre>template&lt;<i>container-compatible-range</i>&lt;T&gt; R&gt;
Expand All @@ -297,8 +298,8 @@ successive iterators of `rg`, where <i>N</i> is `ranges::distance(rg)`.
Performs no reallocations if `R` models `ranges::forward_range` or
`ranges::sized_range`; otherwise, performs order log <i>N</i> reallocations
and <ins>initializes</ins> order <i>N</i>
<del>calls to the copy or move constructor of</del>
<ins>objects of type</ins> `T`.
<del>calls to the copy or move constructor of `T`</del>
<ins>elements</ins>.
</p>
</blockquote>
</li>
Expand Down

0 comments on commit 362a2b1

Please sign in to comment.