tmp/tmpeegtu9dr/{from.md → to.md}
RENAMED
|
@@ -427,11 +427,11 @@ operation to be assigned directly to a `valarray`.
|
|
| 427 |
``` cpp
|
| 428 |
const T& operator[](size_t n) const;
|
| 429 |
T& operator[](size_t n);
|
| 430 |
```
|
| 431 |
|
| 432 |
-
|
| 433 |
|
| 434 |
*Returns:* A reference to the corresponding element of the array.
|
| 435 |
|
| 436 |
[*Note 1*: The expression `(a[i] = q, a[i]) == q` evaluates to `true`
|
| 437 |
for any non-constant `valarray<T> a`, any `T q`, and for any `size_t i`
|
|
@@ -685,11 +685,11 @@ valarray& operator>>=(const T& v);
|
|
| 685 |
type `T`.
|
| 686 |
|
| 687 |
*Effects:* Each of these operators applies the indicated operation to
|
| 688 |
each element of `*this` and `v`.
|
| 689 |
|
| 690 |
-
*Returns:* `*this`
|
| 691 |
|
| 692 |
*Remarks:* The appearance of an array on the left-hand side of a
|
| 693 |
compound assignment does not invalidate references or pointers to the
|
| 694 |
elements of the array.
|
| 695 |
|
|
|
|
| 427 |
``` cpp
|
| 428 |
const T& operator[](size_t n) const;
|
| 429 |
T& operator[](size_t n);
|
| 430 |
```
|
| 431 |
|
| 432 |
+
`n < size()` is `true`.
|
| 433 |
|
| 434 |
*Returns:* A reference to the corresponding element of the array.
|
| 435 |
|
| 436 |
[*Note 1*: The expression `(a[i] = q, a[i]) == q` evaluates to `true`
|
| 437 |
for any non-constant `valarray<T> a`, any `T q`, and for any `size_t i`
|
|
|
|
| 685 |
type `T`.
|
| 686 |
|
| 687 |
*Effects:* Each of these operators applies the indicated operation to
|
| 688 |
each element of `*this` and `v`.
|
| 689 |
|
| 690 |
+
*Returns:* `*this`.
|
| 691 |
|
| 692 |
*Remarks:* The appearance of an array on the left-hand side of a
|
| 693 |
compound assignment does not invalidate references or pointers to the
|
| 694 |
elements of the array.
|
| 695 |
|