You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/standard-library/algorithm-functions.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6496,7 +6496,7 @@ The order of the elements not removed remains stable.
6496
6496
6497
6497
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
6498
6498
6499
-
The complexity is linear with (`last` - `first`) comparisons for equality.
6499
+
The complexity is linear. It makes (`last` - `first`) comparisons for equality.
6500
6500
6501
6501
The [`list` class](list-class.md) has a more efficient member function version of `remove`, which also relinks pointers.
6502
6502
@@ -6605,7 +6605,7 @@ The order of the elements not removed remains stable.
6605
6605
6606
6606
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
6607
6607
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.
6609
6609
6610
6610
### Example
6611
6611
@@ -6710,7 +6710,7 @@ The order of the elements not removed remains stable.
6710
6710
6711
6711
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
6712
6712
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.
6714
6714
6715
6715
For information on how these functions behave, see [Checked Iterators](checked-iterators.md).
6716
6716
@@ -6818,7 +6818,7 @@ The order of the elements not removed remains stable.
6818
6818
6819
6819
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
6820
6820
6821
-
The complexity is linear with (`last` - `first`) comparisons for equality.
6821
+
The complexity is linear. It makes (`last` - `first`) comparisons for equality.
6822
6822
6823
6823
List has a more efficient member function version of remove which relinks pointers.
6824
6824
@@ -6928,7 +6928,7 @@ The order of the elements not replaced remains stable.
6928
6928
6929
6929
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
6930
6930
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.
6932
6932
6933
6933
### Example
6934
6934
@@ -7031,7 +7031,7 @@ The order of the elements not replaced remains stable.
7031
7031
7032
7032
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
7033
7033
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.
7035
7035
7036
7036
### Example
7037
7037
@@ -7155,7 +7155,7 @@ The order of the elements not replaced remains stable.
7155
7155
7156
7156
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
7157
7157
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.
7159
7159
7160
7160
### Example
7161
7161
@@ -7282,7 +7282,7 @@ The algorithm `replace_if` is a generalization of the algorithm `replace`, allow
7282
7282
7283
7283
The `operator==` used to determine the equality between elements must impose an equivalence relation between its operands.
7284
7284
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.
7286
7286
7287
7287
### Example
7288
7288
@@ -7541,7 +7541,7 @@ A forward iterator addressing the position one past the final element in the ran
7541
7541
7542
7542
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.
7543
7543
7544
-
The complexity is linear with at most (`last` - `first`) swaps.
7544
+
The complexity is linear. It makes at most (`last` - `first`) swaps.
7545
7545
7546
7546
### Example
7547
7547
@@ -7664,7 +7664,7 @@ An output iterator addressing the position one past the final element in the des
7664
7664
7665
7665
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.
7666
7666
7667
-
The complexity is linear with at most (`last` - `first`) swaps.
7667
+
The complexity is linear. It makes at most (`last` - `first`) swaps.
7668
7668
7669
7669
### Example
7670
7670
@@ -9707,7 +9707,7 @@ The ranges referenced must be valid; all pointers must be dereferenceable and wi
9707
9707
9708
9708
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`).
9709
9709
9710
-
The complexity is linear with at most (`last1` - `first1`) comparisons.
9710
+
The complexity is linear. It makes at most (`last1` - `first1`) comparisons.
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.
209
209
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.
@@ -391,15 +391,15 @@ If `mode & ios_base::ate` is nonzero and the file was successfully opened, the c
391
391
392
392
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).
393
393
394
-
If the file couldn't be successfully opened, `NULL` is returned.
394
+
If the file couldn't be successfully opened, `nullptr` is returned.
395
395
396
396
### Example
397
397
398
398
See [`basic_filebuf::close`](#close) for an example that uses `open`.
399
399
400
400
## <a name="op_eq"></a> basic_filebuf::operator=
401
401
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.
403
403
404
404
```cpp
405
405
basic_filebuf& operator=(basic_filebuf&& right);
@@ -416,7 +416,7 @@ Returns `*this`.
416
416
417
417
### Remarks
418
418
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).
0 commit comments