tmp/tmpppgi2gx1/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Capacity <a id="inplace.vector.capacity">[[inplace.vector.capacity]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
static constexpr size_type capacity() noexcept;
|
| 5 |
+
static constexpr size_type max_size() noexcept;
|
| 6 |
+
```
|
| 7 |
+
|
| 8 |
+
*Returns:* `N`.
|
| 9 |
+
|
| 10 |
+
``` cpp
|
| 11 |
+
constexpr void resize(size_type sz);
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
*Preconditions:* `T` is *Cpp17DefaultInsertable* into `inplace_vector`.
|
| 15 |
+
|
| 16 |
+
*Effects:* If `sz < size()`, erases the last `size() - sz` elements from
|
| 17 |
+
the sequence. Otherwise, appends `sz - size()` default-inserted elements
|
| 18 |
+
to the sequence.
|
| 19 |
+
|
| 20 |
+
*Remarks:* If an exception is thrown, there are no effects on `*this`.
|
| 21 |
+
|
| 22 |
+
``` cpp
|
| 23 |
+
constexpr void resize(size_type sz, const T& c);
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
*Preconditions:* `T` is *Cpp17CopyInsertable* into `inplace_vector`.
|
| 27 |
+
|
| 28 |
+
*Effects:* If `sz < size()`, erases the last `size() - sz` elements from
|
| 29 |
+
the sequence. Otherwise, appends `sz - size()` copies of `c` to the
|
| 30 |
+
sequence.
|
| 31 |
+
|
| 32 |
+
*Remarks:* If an exception is thrown, there are no effects on `*this`.
|
| 33 |
+
|
| 34 |
+
``` cpp
|
| 35 |
+
static constexpr void reserve(size_type n);
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
*Effects:* None.
|
| 39 |
+
|
| 40 |
+
*Throws:* `bad_alloc` if `n > capacity()` is `true`.
|
| 41 |
+
|
| 42 |
+
``` cpp
|
| 43 |
+
static constexpr void shrink_to_fit() noexcept;
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
*Effects:* None.
|
| 47 |
+
|