tmp/tmpg45abcgx/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
template<class T> class gslice_array {
|
| 6 |
public:
|
|
@@ -26,19 +26,17 @@ namespace std {
|
|
| 26 |
gslice_array() = delete; // as implied by declaring copy constructor above
|
| 27 |
};
|
| 28 |
}
|
| 29 |
```
|
| 30 |
|
| 31 |
-
This template is a helper template used by the `
|
| 32 |
operator
|
| 33 |
|
| 34 |
``` cpp
|
| 35 |
gslice_array<T> valarray<T>::operator[](const gslice&);
|
| 36 |
```
|
| 37 |
|
| 38 |
It has reference semantics to a subset of an array specified by a
|
| 39 |
-
`gslice` object.
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
of assigning the elements of `b` to a generalized slice of the elements
|
| 43 |
-
in `a`.
|
| 44 |
|
|
|
|
| 1 |
+
#### Overview <a id="template.gslice.array.overview">[[template.gslice.array.overview]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
template<class T> class gslice_array {
|
| 6 |
public:
|
|
|
|
| 26 |
gslice_array() = delete; // as implied by declaring copy constructor above
|
| 27 |
};
|
| 28 |
}
|
| 29 |
```
|
| 30 |
|
| 31 |
+
This template is a helper template used by the `gslice` subscript
|
| 32 |
operator
|
| 33 |
|
| 34 |
``` cpp
|
| 35 |
gslice_array<T> valarray<T>::operator[](const gslice&);
|
| 36 |
```
|
| 37 |
|
| 38 |
It has reference semantics to a subset of an array specified by a
|
| 39 |
+
`gslice` object. Thus, the expression `a[gslice(1, length, stride)] = b`
|
| 40 |
+
has the effect of assigning the elements of `b` to a generalized slice
|
| 41 |
+
of the elements in `a`.
|
|
|
|
|
|
|
| 42 |
|