tmp/tmp_xr3q662/{from.md → to.md}
RENAMED
|
@@ -2,11 +2,10 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
#include <initializer_list>
|
| 5 |
|
| 6 |
namespace std {
|
| 7 |
-
|
| 8 |
template<class T> class valarray; // An array of type T
|
| 9 |
class slice; // a BLAS-like slice out of an array
|
| 10 |
template<class T> class slice_array;
|
| 11 |
class gslice; // a generalized slice out of an array
|
| 12 |
template<class T> class gslice_array;
|
|
@@ -145,11 +144,11 @@ additional functions and operators as follows:
|
|
| 145 |
identical functions taking every combination of `const valarray<T>&`
|
| 146 |
and replacement types shall be added.
|
| 147 |
|
| 148 |
In particular, an implementation shall allow a `valarray<T>` to be
|
| 149 |
constructed from such replacement types and shall allow assignments and
|
| 150 |
-
|
| 151 |
`gslice_array<T>`, `mask_array<T>` and `indirect_array<T>` objects.
|
| 152 |
|
| 153 |
These library functions are permitted to throw a `bad_alloc` (
|
| 154 |
[[bad.alloc]]) exception if there are not sufficient resources available
|
| 155 |
to carry out the operation. Note that the exception is not mandated.
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
#include <initializer_list>
|
| 5 |
|
| 6 |
namespace std {
|
|
|
|
| 7 |
template<class T> class valarray; // An array of type T
|
| 8 |
class slice; // a BLAS-like slice out of an array
|
| 9 |
template<class T> class slice_array;
|
| 10 |
class gslice; // a generalized slice out of an array
|
| 11 |
template<class T> class gslice_array;
|
|
|
|
| 144 |
identical functions taking every combination of `const valarray<T>&`
|
| 145 |
and replacement types shall be added.
|
| 146 |
|
| 147 |
In particular, an implementation shall allow a `valarray<T>` to be
|
| 148 |
constructed from such replacement types and shall allow assignments and
|
| 149 |
+
compound assignments of such types to `valarray<T>`, `slice_array<T>`,
|
| 150 |
`gslice_array<T>`, `mask_array<T>` and `indirect_array<T>` objects.
|
| 151 |
|
| 152 |
These library functions are permitted to throw a `bad_alloc` (
|
| 153 |
[[bad.alloc]]) exception if there are not sufficient resources available
|
| 154 |
to carry out the operation. Note that the exception is not mandated.
|