tmp/tmp6aod3owt/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
#### Constructors, copy, and assignment <a id="span.cons">[[span.cons]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
constexpr span() noexcept;
|
| 5 |
```
|
| 6 |
|
|
@@ -25,12 +25,12 @@ template<class It>
|
|
| 25 |
- \[`first`, `first + count`) is a valid range.
|
| 26 |
- `It` models `contiguous_iterator`.
|
| 27 |
- If `extent` is not equal to `dynamic_extent`, then `count` is equal to
|
| 28 |
`extent`.
|
| 29 |
|
| 30 |
-
*Effects:* Initializes `data_` with `to_address(first)` and `size_`
|
| 31 |
-
`count`.
|
| 32 |
|
| 33 |
*Throws:* Nothing.
|
| 34 |
|
| 35 |
``` cpp
|
| 36 |
template<class It, class End>
|
|
@@ -52,12 +52,12 @@ template<class It, class End>
|
|
| 52 |
equal to `extent`.
|
| 53 |
- \[`first`, `last`) is a valid range.
|
| 54 |
- `It` models `contiguous_iterator`.
|
| 55 |
- `End` models `sized_sentinel_for<It>`.
|
| 56 |
|
| 57 |
-
*Effects:* Initializes `data_` with `to_address(first)` and `size_`
|
| 58 |
-
`last - first`.
|
| 59 |
|
| 60 |
*Throws:* When and what `last - first` throws.
|
| 61 |
|
| 62 |
``` cpp
|
| 63 |
template<size_t N> constexpr span(type_identity_t<element_type> (&arr)[N]) noexcept;
|
|
@@ -102,12 +102,12 @@ template<class R> constexpr explicit(extent != dynamic_extent) span(R&& r);
|
|
| 102 |
is equal to `extent`.
|
| 103 |
- `R` models `ranges::contiguous_range` and `ranges::sized_range`.
|
| 104 |
- If `is_const_v<element_type>` is `false`, `R` models
|
| 105 |
`ranges::borrowed_range`.
|
| 106 |
|
| 107 |
-
*Effects:* Initializes `data_` with `ranges::data(r)` and `size_`
|
| 108 |
-
`ranges::size(r)`.
|
| 109 |
|
| 110 |
*Throws:* What and when `ranges::data(r)` and `ranges::size(r)` throw.
|
| 111 |
|
| 112 |
``` cpp
|
| 113 |
constexpr span(const span& other) noexcept = default;
|
|
|
|
| 1 |
+
##### Constructors, copy, and assignment <a id="span.cons">[[span.cons]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
constexpr span() noexcept;
|
| 5 |
```
|
| 6 |
|
|
|
|
| 25 |
- \[`first`, `first + count`) is a valid range.
|
| 26 |
- `It` models `contiguous_iterator`.
|
| 27 |
- If `extent` is not equal to `dynamic_extent`, then `count` is equal to
|
| 28 |
`extent`.
|
| 29 |
|
| 30 |
+
*Effects:* Initializes *`data_`* with `to_address(first)` and *`size_`*
|
| 31 |
+
with `count`.
|
| 32 |
|
| 33 |
*Throws:* Nothing.
|
| 34 |
|
| 35 |
``` cpp
|
| 36 |
template<class It, class End>
|
|
|
|
| 52 |
equal to `extent`.
|
| 53 |
- \[`first`, `last`) is a valid range.
|
| 54 |
- `It` models `contiguous_iterator`.
|
| 55 |
- `End` models `sized_sentinel_for<It>`.
|
| 56 |
|
| 57 |
+
*Effects:* Initializes *`data_`* with `to_address(first)` and *`size_`*
|
| 58 |
+
with `last - first`.
|
| 59 |
|
| 60 |
*Throws:* When and what `last - first` throws.
|
| 61 |
|
| 62 |
``` cpp
|
| 63 |
template<size_t N> constexpr span(type_identity_t<element_type> (&arr)[N]) noexcept;
|
|
|
|
| 102 |
is equal to `extent`.
|
| 103 |
- `R` models `ranges::contiguous_range` and `ranges::sized_range`.
|
| 104 |
- If `is_const_v<element_type>` is `false`, `R` models
|
| 105 |
`ranges::borrowed_range`.
|
| 106 |
|
| 107 |
+
*Effects:* Initializes *`data_`* with `ranges::data(r)` and *`size_`*
|
| 108 |
+
with `ranges::size(r)`.
|
| 109 |
|
| 110 |
*Throws:* What and when `ranges::data(r)` and `ranges::size(r)` throw.
|
| 111 |
|
| 112 |
``` cpp
|
| 113 |
constexpr span(const span& other) noexcept = default;
|