Skip to content

Commit 94d2d28

Browse files
committed
Acrolinx update
1 parent 583d675 commit 94d2d28

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

docs/standard-library/algorithm-functions.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2915,7 +2915,7 @@ vector v3mod = ( 0 0 1 -1 2 -2 3 -3 4 -4 5 -5 )
29152915

29162916
## <a name="is_heap"></a> is_heap
29172917

2918-
Returns **`true`** if the elements in the specified range form a heap.
2918+
Returns **`true`**, if the elements in the specified range form a heap.
29192919

29202920
```cpp
29212921
template<class RandomAccessIterator>
@@ -6496,7 +6496,7 @@ The order of the elements not removed remains stable.
64966496

64976497
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
64986498

6499-
The complexity is linear; there are (`last` - `first`) comparisons for equality.
6499+
The complexity is linear with (`last` - `first`) comparisons for equality.
65006500

65016501
The [`list` class](list-class.md) has a more efficient member function version of `remove`, which also relinks pointers.
65026502

@@ -6605,7 +6605,7 @@ The order of the elements not removed remains stable.
66056605

66066606
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
66076607

6608-
The complexity is linear; there are (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments.
6608+
The complexity is linear with (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments.
66096609

66106610
### Example
66116611

@@ -6710,7 +6710,7 @@ The order of the elements not removed remains stable.
67106710

67116711
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
67126712

6713-
The complexity is linear: there are (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments.
6713+
The complexity is linear with (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments.
67146714

67156715
For information on how these functions behave, see [Checked Iterators](checked-iterators.md).
67166716

@@ -6818,7 +6818,7 @@ The order of the elements not removed remains stable.
68186818

68196819
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
68206820

6821-
The complexity is linear: there are (`last` - `first`) comparisons for equality.
6821+
The complexity is linear with (`last` - `first`) comparisons for equality.
68226822

68236823
List has a more efficient member function version of remove which relinks pointers.
68246824

@@ -6928,7 +6928,7 @@ The order of the elements not replaced remains stable.
69286928

69296929
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
69306930

6931-
The complexity is linear; there are (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
6931+
The complexity is linear with (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
69326932

69336933
### Example
69346934

@@ -7031,7 +7031,7 @@ The order of the elements not replaced remains stable.
70317031

70327032
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
70337033

7034-
The complexity is linear: there are (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
7034+
The complexity is linear with (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
70357035

70367036
### Example
70377037

@@ -7155,7 +7155,7 @@ The order of the elements not replaced remains stable.
71557155

71567156
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
71577157

7158-
The complexity is linear; there are (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
7158+
The complexity is linear with (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
71597159

71607160
### Example
71617161

@@ -7282,7 +7282,7 @@ The algorithm `replace_if` is a generalization of the algorithm `replace`, allow
72827282

72837283
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
72847284

7285-
The complexity is linear: there are (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
7285+
The complexity is linear with (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
72867286

72877287
### Example
72887288

@@ -9383,7 +9383,7 @@ The range referenced must be valid; all pointers must be dereferenceable and wit
93839383

93849384
Elements are equivalent, but not necessarily equal, if neither is less than the other. The `sort` algorithm is stable and guarantees that the relative ordering of equivalent elements will be preserved.
93859385

9386-
The run-time complexity of `stable_sort` depends on the amount of memory available, but the best case (given sufficient memory) is `O(N log N)` and the worst case is `O(N (log N)^2)`, where *N* = *`last`* - *`first`*. Usually, the `sort` algorithm is significantly faster than `stable_sort`.
9386+
The run-time complexity of `stable_sort` depends on the amount of memory available, but the best case (given sufficient memory) is `O(N log N)` and the worst case is `O(N (log N)^2)`, where *N* = *`last`* - *`first`*. Usually, the `sort` algorithm is faster than `stable_sort`.
93879387

93889388
### Example
93899389

docs/standard-library/basic-ios-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ The **`this`** object for the stream to which you're copying the flags.
208208

209209
### Remarks
210210

211-
The member function reports the callback event **`erase_event`**. It then copies from *`right`* into **`*this`** the fill character, the tie pointer, and the formatting information. Before altering the exception mask, it reports the callback event `copyfmt_event`. If, after the copy is complete, `state&exceptions` is nonzero, the function effectively calls [`clear`](#clear) with the argument [`rdstate`](#rdstate). It returns **`*this`**.
211+
The member function reports the callback event **`erase_event`**. It then copies from *`right`* into **`*this`** the fill character, the tie pointer, and the formatting information. Before altering the exception mask, it reports the callback event `copyfmt_event`. If after the copy is complete, `state&exceptions` is nonzero, the function effectively calls [`clear`](#clear) with the argument [`rdstate`](#rdstate). It returns **`*this`**.
212212

213213
### Example
214214

@@ -290,7 +290,7 @@ The flags that are currently specified to thrown an exception for the stream.
290290

291291
### Remarks
292292

293-
The first member function returns the stored exception mask. The second member function stores *`_Except`* in the exception mask and returns its previous stored value. Note that storing a new exception mask can throw an exception just like the call [`clear`](#clear)( [`rdstate`](#rdstate) ).
293+
The first member function returns the stored exception mask. The second member function stores *`_Except`* in the exception mask and returns its previous stored value. Storing a new exception mask can throw an exception just like the call [`clear`](#clear)( [`rdstate`](#rdstate) ).
294294

295295
### Example
296296

0 commit comments

Comments
 (0)