tmp/tmpuc0vblg4/{from.md → to.md}
RENAMED
|
@@ -1,22 +1,23 @@
|
|
| 1 |
#### `deque` constructors, copy, and assignment <a id="deque.cons">[[deque.cons]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
explicit deque(const Allocator&
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Constructs an empty `deque`, using the specified allocator.
|
| 8 |
|
| 9 |
*Complexity:* Constant.
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
-
explicit deque(size_type n);
|
| 13 |
```
|
| 14 |
|
| 15 |
-
*Effects:* Constructs a `deque` with `n`
|
|
|
|
| 16 |
|
| 17 |
-
*Requires:* `T` shall be `
|
| 18 |
|
| 19 |
*Complexity:* Linear in `n`.
|
| 20 |
|
| 21 |
``` cpp
|
| 22 |
deque(size_type n, const T& value,
|
|
@@ -37,30 +38,7 @@ template <class InputIterator>
|
|
| 37 |
```
|
| 38 |
|
| 39 |
*Effects:* Constructs a `deque` equal to the range \[`first`, `last`),
|
| 40 |
using the specified allocator.
|
| 41 |
|
| 42 |
-
*Complexity:* `distance(first, last)`.
|
| 43 |
-
|
| 44 |
-
``` cpp
|
| 45 |
-
template <class InputIterator>
|
| 46 |
-
void assign(InputIterator first, InputIterator last);
|
| 47 |
-
```
|
| 48 |
-
|
| 49 |
-
*Effects:*
|
| 50 |
-
|
| 51 |
-
``` cpp
|
| 52 |
-
erase(begin(), end());
|
| 53 |
-
insert(begin(), first, last);
|
| 54 |
-
```
|
| 55 |
-
|
| 56 |
-
``` cpp
|
| 57 |
-
void assign(size_type n, const T& t);
|
| 58 |
-
```
|
| 59 |
-
|
| 60 |
-
*Effects:*
|
| 61 |
-
|
| 62 |
-
``` cpp
|
| 63 |
-
erase(begin(), end());
|
| 64 |
-
insert(begin(), n, t);
|
| 65 |
-
```
|
| 66 |
|
|
|
|
| 1 |
#### `deque` constructors, copy, and assignment <a id="deque.cons">[[deque.cons]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
explicit deque(const Allocator&);
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Constructs an empty `deque`, using the specified allocator.
|
| 8 |
|
| 9 |
*Complexity:* Constant.
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
+
explicit deque(size_type n, const Allocator& = Allocator());
|
| 13 |
```
|
| 14 |
|
| 15 |
+
*Effects:* Constructs a `deque` with `n` default-inserted elements using
|
| 16 |
+
the specified allocator.
|
| 17 |
|
| 18 |
+
*Requires:* `T` shall be `DefaultInsertable` into `*this`.
|
| 19 |
|
| 20 |
*Complexity:* Linear in `n`.
|
| 21 |
|
| 22 |
``` cpp
|
| 23 |
deque(size_type n, const T& value,
|
|
|
|
| 38 |
```
|
| 39 |
|
| 40 |
*Effects:* Constructs a `deque` equal to the range \[`first`, `last`),
|
| 41 |
using the specified allocator.
|
| 42 |
|
| 43 |
+
*Complexity:* Linear in `distance(first, last)`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|