tmp/tmpnvmq742g/{from.md → to.md}
RENAMED
|
@@ -1,33 +1,33 @@
|
|
| 1 |
#### Capacity <a id="deque.capacity">[[deque.capacity]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
void resize(size_type sz);
|
| 5 |
```
|
| 6 |
|
| 7 |
*Preconditions:* `T` is *Cpp17MoveInsertable* and
|
| 8 |
-
*Cpp17DefaultInsertable* into `
|
| 9 |
|
| 10 |
*Effects:* If `sz < size()`, erases the last `size() - sz` elements from
|
| 11 |
the sequence. Otherwise, appends `sz - size()` default-inserted elements
|
| 12 |
to the sequence.
|
| 13 |
|
| 14 |
``` cpp
|
| 15 |
-
void resize(size_type sz, const T& c);
|
| 16 |
```
|
| 17 |
|
| 18 |
-
*Preconditions:* `T` is *Cpp17CopyInsertable* into `
|
| 19 |
|
| 20 |
*Effects:* If `sz < size()`, erases the last `size() - sz` elements from
|
| 21 |
the sequence. Otherwise, appends `sz - size()` copies of `c` to the
|
| 22 |
sequence.
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
-
void shrink_to_fit();
|
| 26 |
```
|
| 27 |
|
| 28 |
-
*Preconditions:* `T` is *Cpp17MoveInsertable* into `
|
| 29 |
|
| 30 |
*Effects:* `shrink_to_fit` is a non-binding request to reduce memory use
|
| 31 |
but does not change the size of the sequence.
|
| 32 |
|
| 33 |
[*Note 1*: The request is non-binding to allow latitude for
|
|
|
|
| 1 |
#### Capacity <a id="deque.capacity">[[deque.capacity]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
constexpr void resize(size_type sz);
|
| 5 |
```
|
| 6 |
|
| 7 |
*Preconditions:* `T` is *Cpp17MoveInsertable* and
|
| 8 |
+
*Cpp17DefaultInsertable* into `deque`.
|
| 9 |
|
| 10 |
*Effects:* If `sz < size()`, erases the last `size() - sz` elements from
|
| 11 |
the sequence. Otherwise, appends `sz - size()` default-inserted elements
|
| 12 |
to the sequence.
|
| 13 |
|
| 14 |
``` cpp
|
| 15 |
+
constexpr void resize(size_type sz, const T& c);
|
| 16 |
```
|
| 17 |
|
| 18 |
+
*Preconditions:* `T` is *Cpp17CopyInsertable* into `deque`.
|
| 19 |
|
| 20 |
*Effects:* If `sz < size()`, erases the last `size() - sz` elements from
|
| 21 |
the sequence. Otherwise, appends `sz - size()` copies of `c` to the
|
| 22 |
sequence.
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
+
constexpr void shrink_to_fit();
|
| 26 |
```
|
| 27 |
|
| 28 |
+
*Preconditions:* `T` is *Cpp17MoveInsertable* into `deque`.
|
| 29 |
|
| 30 |
*Effects:* `shrink_to_fit` is a non-binding request to reduce memory use
|
| 31 |
but does not change the size of the sequence.
|
| 32 |
|
| 33 |
[*Note 1*: The request is non-binding to allow latitude for
|