tmp/tmpskue9058/{from.md → to.md}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
#### Capacity <a id="list.capacity">[[list.capacity]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
void resize(size_type sz);
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Preconditions:* `T` is *Cpp17DefaultInsertable* into `
|
| 8 |
|
| 9 |
*Effects:* If `size() < sz`, appends `sz - size()` default-inserted
|
| 10 |
elements to the sequence. If `sz <= size()`, equivalent to:
|
| 11 |
|
| 12 |
``` cpp
|
|
@@ -14,14 +14,14 @@ list<T>::iterator it = begin();
|
|
| 14 |
advance(it, sz);
|
| 15 |
erase(it, end());
|
| 16 |
```
|
| 17 |
|
| 18 |
``` cpp
|
| 19 |
-
void resize(size_type sz, const T& c);
|
| 20 |
```
|
| 21 |
|
| 22 |
-
*Preconditions:* `T` is *Cpp17CopyInsertable* into `
|
| 23 |
|
| 24 |
*Effects:* As if by:
|
| 25 |
|
| 26 |
``` cpp
|
| 27 |
if (sz > size())
|
|
|
|
| 1 |
#### Capacity <a id="list.capacity">[[list.capacity]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
constexpr void resize(size_type sz);
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Preconditions:* `T` is *Cpp17DefaultInsertable* into `list`.
|
| 8 |
|
| 9 |
*Effects:* If `size() < sz`, appends `sz - size()` default-inserted
|
| 10 |
elements to the sequence. If `sz <= size()`, equivalent to:
|
| 11 |
|
| 12 |
``` cpp
|
|
|
|
| 14 |
advance(it, sz);
|
| 15 |
erase(it, end());
|
| 16 |
```
|
| 17 |
|
| 18 |
``` cpp
|
| 19 |
+
constexpr void resize(size_type sz, const T& c);
|
| 20 |
```
|
| 21 |
|
| 22 |
+
*Preconditions:* `T` is *Cpp17CopyInsertable* into `list`.
|
| 23 |
|
| 24 |
*Effects:* As if by:
|
| 25 |
|
| 26 |
``` cpp
|
| 27 |
if (sz > size())
|