tmp/tmp89wkb_0z/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
slice();
|
| 5 |
slice(size_t start, size_t length, size_t stride);
|
| 6 |
slice(const slice&);
|
|
@@ -10,7 +10,7 @@ The default constructor is equivalent to `slice(0, 0, 0)`. A default
|
|
| 10 |
constructor is provided only to permit the declaration of arrays of
|
| 11 |
slices. The constructor with arguments for a slice takes a start,
|
| 12 |
length, and stride parameter.
|
| 13 |
|
| 14 |
[*Example 1*: `slice(3, 8, 2)` constructs a slice which selects
|
| 15 |
-
elements 3, 5, 7,
|
| 16 |
|
|
|
|
| 1 |
+
#### Constructors <a id="cons.slice">[[cons.slice]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
slice();
|
| 5 |
slice(size_t start, size_t length, size_t stride);
|
| 6 |
slice(const slice&);
|
|
|
|
| 10 |
constructor is provided only to permit the declaration of arrays of
|
| 11 |
slices. The constructor with arguments for a slice takes a start,
|
| 12 |
length, and stride parameter.
|
| 13 |
|
| 14 |
[*Example 1*: `slice(3, 8, 2)` constructs a slice which selects
|
| 15 |
+
elements 3, 5, 7, …, 17 from an array. — *end example*]
|
| 16 |
|