tmp/tmpfwd1e97_/{from.md → to.md}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
### Class template `mask_array` <a id="template.mask.array">[[template.mask.array]]</a>
|
| 2 |
|
| 3 |
-
####
|
| 4 |
|
| 5 |
``` cpp
|
| 6 |
namespace std {
|
| 7 |
template<class T> class mask_array {
|
| 8 |
public:
|
|
@@ -37,24 +37,24 @@ mask_array<T> valarray<T>::operator[](const valarray<bool>&).
|
|
| 37 |
```
|
| 38 |
|
| 39 |
It has reference semantics to a subset of an array specified by a
|
| 40 |
boolean mask. Thus, the expression `a[mask] = b;` has the effect of
|
| 41 |
assigning the elements of `b` to the masked elements in `a` (those for
|
| 42 |
-
which the corresponding element in `mask` is `true`
|
| 43 |
|
| 44 |
-
####
|
| 45 |
|
| 46 |
``` cpp
|
| 47 |
void operator=(const valarray<T>&) const;
|
| 48 |
const mask_array& operator=(const mask_array&) const;
|
| 49 |
```
|
| 50 |
|
| 51 |
These assignment operators have reference semantics, assigning the
|
| 52 |
values of the argument array elements to selected elements of the
|
| 53 |
`valarray<T>` object to which it refers.
|
| 54 |
|
| 55 |
-
####
|
| 56 |
|
| 57 |
``` cpp
|
| 58 |
void operator*= (const valarray<T>&) const;
|
| 59 |
void operator/= (const valarray<T>&) const;
|
| 60 |
void operator%= (const valarray<T>&) const;
|
|
@@ -69,11 +69,11 @@ void operator>>=(const valarray<T>&) const;
|
|
| 69 |
|
| 70 |
These compound assignments have reference semantics, applying the
|
| 71 |
indicated operation to the elements of the argument array and selected
|
| 72 |
elements of the `valarray<T>` object to which the mask object refers.
|
| 73 |
|
| 74 |
-
####
|
| 75 |
|
| 76 |
``` cpp
|
| 77 |
void operator=(const T&) const;
|
| 78 |
```
|
| 79 |
|
|
|
|
| 1 |
### Class template `mask_array` <a id="template.mask.array">[[template.mask.array]]</a>
|
| 2 |
|
| 3 |
+
#### Overview <a id="template.mask.array.overview">[[template.mask.array.overview]]</a>
|
| 4 |
|
| 5 |
``` cpp
|
| 6 |
namespace std {
|
| 7 |
template<class T> class mask_array {
|
| 8 |
public:
|
|
|
|
| 37 |
```
|
| 38 |
|
| 39 |
It has reference semantics to a subset of an array specified by a
|
| 40 |
boolean mask. Thus, the expression `a[mask] = b;` has the effect of
|
| 41 |
assigning the elements of `b` to the masked elements in `a` (those for
|
| 42 |
+
which the corresponding element in `mask` is `true`).
|
| 43 |
|
| 44 |
+
#### Assignment <a id="mask.array.assign">[[mask.array.assign]]</a>
|
| 45 |
|
| 46 |
``` cpp
|
| 47 |
void operator=(const valarray<T>&) const;
|
| 48 |
const mask_array& operator=(const mask_array&) const;
|
| 49 |
```
|
| 50 |
|
| 51 |
These assignment operators have reference semantics, assigning the
|
| 52 |
values of the argument array elements to selected elements of the
|
| 53 |
`valarray<T>` object to which it refers.
|
| 54 |
|
| 55 |
+
#### Compound assignment <a id="mask.array.comp.assign">[[mask.array.comp.assign]]</a>
|
| 56 |
|
| 57 |
``` cpp
|
| 58 |
void operator*= (const valarray<T>&) const;
|
| 59 |
void operator/= (const valarray<T>&) const;
|
| 60 |
void operator%= (const valarray<T>&) const;
|
|
|
|
| 69 |
|
| 70 |
These compound assignments have reference semantics, applying the
|
| 71 |
indicated operation to the elements of the argument array and selected
|
| 72 |
elements of the `valarray<T>` object to which the mask object refers.
|
| 73 |
|
| 74 |
+
#### Fill function <a id="mask.array.fill">[[mask.array.fill]]</a>
|
| 75 |
|
| 76 |
``` cpp
|
| 77 |
void operator=(const T&) const;
|
| 78 |
```
|
| 79 |
|