tmp/tmpzbab69ey/{from.md → to.md}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
The member `operator[]` is overloaded to provide several ways to select
|
| 4 |
sequences of elements from among those controlled by `*this`. Each of
|
| 5 |
these operations returns a subset of the array. The const-qualified
|
| 6 |
versions return this subset as a new `valarray` object. The non-const
|
| 7 |
versions return a class template object which has reference semantics to
|
| 8 |
the original array, working in conjunction with various overloads of
|
| 9 |
`operator=` and other assigning operators to allow selective replacement
|
| 10 |
(slicing) of the controlled sequence. In each case the selected
|
| 11 |
-
element(s)
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
valarray operator[](slice slicearr) const;
|
| 15 |
```
|
| 16 |
|
|
|
|
| 1 |
+
#### Subset operations <a id="valarray.sub">[[valarray.sub]]</a>
|
| 2 |
|
| 3 |
The member `operator[]` is overloaded to provide several ways to select
|
| 4 |
sequences of elements from among those controlled by `*this`. Each of
|
| 5 |
these operations returns a subset of the array. The const-qualified
|
| 6 |
versions return this subset as a new `valarray` object. The non-const
|
| 7 |
versions return a class template object which has reference semantics to
|
| 8 |
the original array, working in conjunction with various overloads of
|
| 9 |
`operator=` and other assigning operators to allow selective replacement
|
| 10 |
(slicing) of the controlled sequence. In each case the selected
|
| 11 |
+
element(s) shall exist.
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
valarray operator[](slice slicearr) const;
|
| 15 |
```
|
| 16 |
|