tmp/tmpf1vnb4nh/{from.md → to.md}
RENAMED
|
@@ -4,11 +4,11 @@
|
|
| 4 |
|
| 5 |
``` cpp
|
| 6 |
namespace std {
|
| 7 |
template <class T> class gslice_array {
|
| 8 |
public:
|
| 9 |
-
|
| 10 |
|
| 11 |
void operator= (const valarray<T>&) const;
|
| 12 |
void operator*= (const valarray<T>&) const;
|
| 13 |
void operator/= (const valarray<T>&) const;
|
| 14 |
void operator%= (const valarray<T>&) const;
|
|
@@ -53,11 +53,11 @@ const gslice_array& operator=(const gslice_array&) const;
|
|
| 53 |
|
| 54 |
These assignment operators have reference semantics, assigning the
|
| 55 |
values of the argument array elements to selected elements of the
|
| 56 |
`valarray<T>` object to which the `gslice_array` refers.
|
| 57 |
|
| 58 |
-
#### `gslice_array` <a id="gslice.array.comp.assign">[[gslice.array.comp.assign]]</a>
|
| 59 |
|
| 60 |
``` cpp
|
| 61 |
void operator*= (const valarray<T>&) const;
|
| 62 |
void operator/= (const valarray<T>&) const;
|
| 63 |
void operator%= (const valarray<T>&) const;
|
|
@@ -68,11 +68,11 @@ void operator&= (const valarray<T>&) const;
|
|
| 68 |
void operator|= (const valarray<T>&) const;
|
| 69 |
void operator<<=(const valarray<T>&) const;
|
| 70 |
void operator>>=(const valarray<T>&) const;
|
| 71 |
```
|
| 72 |
|
| 73 |
-
These
|
| 74 |
indicated operation to the elements of the argument array and selected
|
| 75 |
elements of the `valarray<T>` object to which the `gslice_array` object
|
| 76 |
refers.
|
| 77 |
|
| 78 |
#### `gslice_array` fill function <a id="gslice.array.fill">[[gslice.array.fill]]</a>
|
|
|
|
| 4 |
|
| 5 |
``` cpp
|
| 6 |
namespace std {
|
| 7 |
template <class T> class gslice_array {
|
| 8 |
public:
|
| 9 |
+
using value_type = T;
|
| 10 |
|
| 11 |
void operator= (const valarray<T>&) const;
|
| 12 |
void operator*= (const valarray<T>&) const;
|
| 13 |
void operator/= (const valarray<T>&) const;
|
| 14 |
void operator%= (const valarray<T>&) const;
|
|
|
|
| 53 |
|
| 54 |
These assignment operators have reference semantics, assigning the
|
| 55 |
values of the argument array elements to selected elements of the
|
| 56 |
`valarray<T>` object to which the `gslice_array` refers.
|
| 57 |
|
| 58 |
+
#### `gslice_array` compound assignment <a id="gslice.array.comp.assign">[[gslice.array.comp.assign]]</a>
|
| 59 |
|
| 60 |
``` cpp
|
| 61 |
void operator*= (const valarray<T>&) const;
|
| 62 |
void operator/= (const valarray<T>&) const;
|
| 63 |
void operator%= (const valarray<T>&) const;
|
|
|
|
| 68 |
void operator|= (const valarray<T>&) const;
|
| 69 |
void operator<<=(const valarray<T>&) const;
|
| 70 |
void operator>>=(const valarray<T>&) const;
|
| 71 |
```
|
| 72 |
|
| 73 |
+
These compound assignments have reference semantics, applying the
|
| 74 |
indicated operation to the elements of the argument array and selected
|
| 75 |
elements of the `valarray<T>` object to which the `gslice_array` object
|
| 76 |
refers.
|
| 77 |
|
| 78 |
#### `gslice_array` fill function <a id="gslice.array.fill">[[gslice.array.fill]]</a>
|