tmp/tmpeoj192j2/{from.md → to.md}
RENAMED
|
@@ -238,11 +238,11 @@ operation to be assigned directly to a `valarray`.
|
|
| 238 |
``` cpp
|
| 239 |
const T& operator[](size_t n) const;
|
| 240 |
T& operator[](size_t n);
|
| 241 |
```
|
| 242 |
|
| 243 |
-
|
| 244 |
|
| 245 |
*Returns:* A reference to the corresponding element of the array.
|
| 246 |
|
| 247 |
[*Note 1*: The expression `(a[i] = q, a[i]) == q` evaluates to `true`
|
| 248 |
for any non-constant `valarray<T> a`, any `T q`, and for any `size_t i`
|
|
@@ -496,11 +496,11 @@ valarray& operator>>=(const T& v);
|
|
| 496 |
type `T`.
|
| 497 |
|
| 498 |
*Effects:* Each of these operators applies the indicated operation to
|
| 499 |
each element of `*this` and `v`.
|
| 500 |
|
| 501 |
-
*Returns:* `*this`
|
| 502 |
|
| 503 |
*Remarks:* The appearance of an array on the left-hand side of a
|
| 504 |
compound assignment does not invalidate references or pointers to the
|
| 505 |
elements of the array.
|
| 506 |
|
|
|
|
| 238 |
``` cpp
|
| 239 |
const T& operator[](size_t n) const;
|
| 240 |
T& operator[](size_t n);
|
| 241 |
```
|
| 242 |
|
| 243 |
+
`n < size()` is `true`.
|
| 244 |
|
| 245 |
*Returns:* A reference to the corresponding element of the array.
|
| 246 |
|
| 247 |
[*Note 1*: The expression `(a[i] = q, a[i]) == q` evaluates to `true`
|
| 248 |
for any non-constant `valarray<T> a`, any `T q`, and for any `size_t i`
|
|
|
|
| 496 |
type `T`.
|
| 497 |
|
| 498 |
*Effects:* Each of these operators applies the indicated operation to
|
| 499 |
each element of `*this` and `v`.
|
| 500 |
|
| 501 |
+
*Returns:* `*this`.
|
| 502 |
|
| 503 |
*Remarks:* The appearance of an array on the left-hand side of a
|
| 504 |
compound assignment does not invalidate references or pointers to the
|
| 505 |
elements of the array.
|
| 506 |
|