Skip to content

Commit 7a1e655

Browse files
committed
update after review
1 parent ac88111 commit 7a1e655

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

docs/standard-library/algorithm-functions.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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 with (`last` - `first`) comparisons for equality.
6499+
The complexity is linear. It makes (`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 with (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments.
6608+
The complexity is linear. It makes (`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 with (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments.
6713+
The complexity is linear. It makes (`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 with (`last` - `first`) comparisons for equality.
6821+
The complexity is linear. It makes (`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 with (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
6931+
The complexity is linear. It makes (`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 with (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
7034+
The complexity is linear. It makes (`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 with (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
7158+
The complexity is linear. It makes (`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 with (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
7285+
The complexity is linear. It makes (`last` - `first`) comparisons for equality and at most (`last` - `first`) assignments of new values.
72867286

72877287
### Example
72887288

@@ -7541,7 +7541,7 @@ A forward iterator addressing the position one past the final element in the ran
75417541

75427542
The ranges referenced must be valid; all pointers must be dereferenceable and within the sequence the last position is reachable from the first by incrementation.
75437543

7544-
The complexity is linear with at most (`last` - `first`) swaps.
7544+
The complexity is linear. It makes at most (`last` - `first`) swaps.
75457545

75467546
### Example
75477547

@@ -7664,7 +7664,7 @@ An output iterator addressing the position one past the final element in the des
76647664

76657665
The ranges referenced must be valid; all pointers must be dereferenceable and within the sequence the last position is reachable from the first by incrementation.
76667666

7667-
The complexity is linear with at most (`last` - `first`) swaps.
7667+
The complexity is linear. It makes at most (`last` - `first`) swaps.
76687668

76697669
### Example
76707670

@@ -9707,7 +9707,7 @@ The ranges referenced must be valid; all pointers must be dereferenceable and wi
97079707

97089708
If *result* is set equal to *`first1`* in the first version of the algorithm, then the source and destination ranges will be the same and the sequence will be modified in place. But the *`result`* may not address a position within the range [`first1` + 1, `last1`).
97099709

9710-
The complexity is linear with at most (`last1` - `first1`) comparisons.
9710+
The complexity is linear. It makes at most (`last1` - `first1`) comparisons.
97119711

97129712
### Example
97139713

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ basic_filebuf(basic_filebuf&& right);
207207
208208
The first constructor stores a null pointer in all the pointers controlling the input buffer and the output buffer. It also stores a null pointer in the file pointer.
209209
210-
The second constructor initializes the object with the contents of `right`, treated as a rvalue reference.
210+
The second constructor initializes the object with the contents of `right`, treated as an rvalue reference.
211211
212212
## <a name="char_type"></a> basic_filebuf::char_type
213213
@@ -391,15 +391,15 @@ If `mode & ios_base::ate` is nonzero and the file was successfully opened, the c
391391
392392
If the above operations completed successfully, the file conversion facet is determined: `use_facet<codecvt<Char_T, char, traits_type::`[`state_type`](../standard-library/char-traits-struct.md#state_type)`> >(`[`getloc`](../standard-library/basic-streambuf-class.md#getloc)`)`, for use by [underflow](#underflow) and [overflow](#overflow).
393393
394-
If the file couldn't be successfully opened, `NULL` is returned.
394+
If the file couldn't be successfully opened, `nullptr` is returned.
395395
396396
### Example
397397
398398
See [`basic_filebuf::close`](#close) for an example that uses `open`.
399399
400400
## <a name="op_eq"></a> basic_filebuf::operator=
401401
402-
Assign the content of this stream buffer object. This is a move assignment involving a rvalue that doesn't leave a copy behind.
402+
Assign the content of this stream buffer object. This is a move assignment involving an rvalue that doesn't leave a copy behind.
403403
404404
```cpp
405405
basic_filebuf& operator=(basic_filebuf&& right);
@@ -416,7 +416,7 @@ Returns `*this`.
416416

417417
### Remarks
418418

419-
The member operator replaces the contents of the object by using the contents of `right`, treated as a rvalue reference. For more information, see [Rvalue reference declarator: &&](../cpp/rvalue-reference-declarator-amp-amp.md).
419+
The member operator replaces the contents of the object by using the contents of `right`, treated as an rvalue reference. For more information, see [Rvalue reference declarator: &&](../cpp/rvalue-reference-declarator-amp-amp.md).
420420

421421
## <a name="overflow"></a> basic_filebuf::overflow
422422

0 commit comments

Comments
 (0)