tmp/tmpbiuzgzem/{from.md → to.md}
RENAMED
|
@@ -195,16 +195,14 @@ the assignment.
|
|
| 195 |
|
| 196 |
``` cpp
|
| 197 |
valarray<T>& operator=(valarray<T>&& v) noexcept;
|
| 198 |
```
|
| 199 |
|
| 200 |
-
*Effects:* `*this` obtains the value of `v`.
|
| 201 |
-
|
| 202 |
-
the same length, as if by calling `resize(v.size())`, before performing
|
| 203 |
-
the assignment.
|
| 204 |
|
| 205 |
-
*Complexity:*
|
| 206 |
|
| 207 |
``` cpp
|
| 208 |
valarray& operator=(initializer_list<T> il);
|
| 209 |
```
|
| 210 |
|
|
@@ -258,12 +256,12 @@ Likewise, the expression `&a[i] != &b[j]` evaluates as `true` for any
|
|
| 258 |
two arrays `a` and `b` and for any `size_t i` and `size_t j` such that
|
| 259 |
`i` is less than the length of `a` and `j` is less than the length of
|
| 260 |
`b`. This property indicates an absence of aliasing and may be used to
|
| 261 |
advantage by optimizing compilers.[^13]
|
| 262 |
|
| 263 |
-
The reference returned by the subscript operator for an array
|
| 264 |
-
|
| 265 |
`resize(size_t, T)` ([[valarray.members]]) is called for that array or
|
| 266 |
until the lifetime of that array ends, whichever happens first.
|
| 267 |
|
| 268 |
If the subscript operator is invoked with a `size_t` argument whose
|
| 269 |
value is not less than the length of the array, the behavior is
|
|
@@ -488,11 +486,11 @@ void swap(valarray& v) noexcept;
|
|
| 488 |
size_t size() const;
|
| 489 |
```
|
| 490 |
|
| 491 |
*Returns:* The number of elements in the array.
|
| 492 |
|
| 493 |
-
*Complexity:*
|
| 494 |
|
| 495 |
``` cpp
|
| 496 |
T sum() const;
|
| 497 |
```
|
| 498 |
|
|
|
|
| 195 |
|
| 196 |
``` cpp
|
| 197 |
valarray<T>& operator=(valarray<T>&& v) noexcept;
|
| 198 |
```
|
| 199 |
|
| 200 |
+
*Effects:* `*this` obtains the value of `v`. The value of `v` after the
|
| 201 |
+
assignment is not specified.
|
|
|
|
|
|
|
| 202 |
|
| 203 |
+
*Complexity:* Linear.
|
| 204 |
|
| 205 |
``` cpp
|
| 206 |
valarray& operator=(initializer_list<T> il);
|
| 207 |
```
|
| 208 |
|
|
|
|
| 256 |
two arrays `a` and `b` and for any `size_t i` and `size_t j` such that
|
| 257 |
`i` is less than the length of `a` and `j` is less than the length of
|
| 258 |
`b`. This property indicates an absence of aliasing and may be used to
|
| 259 |
advantage by optimizing compilers.[^13]
|
| 260 |
|
| 261 |
+
The reference returned by the subscript operator for an array shall be
|
| 262 |
+
valid until the member function
|
| 263 |
`resize(size_t, T)` ([[valarray.members]]) is called for that array or
|
| 264 |
until the lifetime of that array ends, whichever happens first.
|
| 265 |
|
| 266 |
If the subscript operator is invoked with a `size_t` argument whose
|
| 267 |
value is not less than the length of the array, the behavior is
|
|
|
|
| 486 |
size_t size() const;
|
| 487 |
```
|
| 488 |
|
| 489 |
*Returns:* The number of elements in the array.
|
| 490 |
|
| 491 |
+
*Complexity:* Constant time.
|
| 492 |
|
| 493 |
``` cpp
|
| 494 |
T sum() const;
|
| 495 |
```
|
| 496 |
|