tmp/tmpoereiix2/{from.md → to.md}
RENAMED
|
@@ -1,41 +1,41 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
explicit vector(const Allocator&);
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Constructs an empty `vector`, using the specified allocator.
|
| 8 |
|
| 9 |
*Complexity:* Constant.
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
-
explicit vector(size_type n, const Allocator& = Allocator());
|
| 13 |
```
|
| 14 |
|
|
|
|
|
|
|
| 15 |
*Effects:* Constructs a `vector` with `n` default-inserted elements
|
| 16 |
using the specified allocator.
|
| 17 |
|
| 18 |
-
*Requires:* `T` shall be `DefaultInsertable` into `*this`.
|
| 19 |
-
|
| 20 |
*Complexity:* Linear in `n`.
|
| 21 |
|
| 22 |
``` cpp
|
| 23 |
-
vector(size_type n, const T& value,
|
| 24 |
const Allocator& = Allocator());
|
| 25 |
```
|
| 26 |
|
|
|
|
|
|
|
| 27 |
*Effects:* Constructs a `vector` with `n` copies of `value`, using the
|
| 28 |
specified allocator.
|
| 29 |
|
| 30 |
-
*Requires:* `T` shall be `CopyInsertable` into `*this`.
|
| 31 |
-
|
| 32 |
*Complexity:* Linear in `n`.
|
| 33 |
|
| 34 |
``` cpp
|
| 35 |
template<class InputIterator>
|
| 36 |
-
vector(InputIterator first, InputIterator last,
|
| 37 |
const Allocator& = Allocator());
|
| 38 |
```
|
| 39 |
|
| 40 |
*Effects:* Constructs a `vector` equal to the range \[`first`, `last`),
|
| 41 |
using the specified allocator.
|
|
|
|
| 1 |
+
#### Constructors, copy, and assignment <a id="vector.cons">[[vector.cons]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
constexpr explicit vector(const Allocator&) noexcept;
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Constructs an empty `vector`, using the specified allocator.
|
| 8 |
|
| 9 |
*Complexity:* Constant.
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
+
constexpr explicit vector(size_type n, const Allocator& = Allocator());
|
| 13 |
```
|
| 14 |
|
| 15 |
+
*Preconditions:* `T` is *Cpp17DefaultInsertable* into `*this`.
|
| 16 |
+
|
| 17 |
*Effects:* Constructs a `vector` with `n` default-inserted elements
|
| 18 |
using the specified allocator.
|
| 19 |
|
|
|
|
|
|
|
| 20 |
*Complexity:* Linear in `n`.
|
| 21 |
|
| 22 |
``` cpp
|
| 23 |
+
constexpr vector(size_type n, const T& value,
|
| 24 |
const Allocator& = Allocator());
|
| 25 |
```
|
| 26 |
|
| 27 |
+
*Preconditions:* `T` is *Cpp17CopyInsertable* into `*this`.
|
| 28 |
+
|
| 29 |
*Effects:* Constructs a `vector` with `n` copies of `value`, using the
|
| 30 |
specified allocator.
|
| 31 |
|
|
|
|
|
|
|
| 32 |
*Complexity:* Linear in `n`.
|
| 33 |
|
| 34 |
``` cpp
|
| 35 |
template<class InputIterator>
|
| 36 |
+
constexpr vector(InputIterator first, InputIterator last,
|
| 37 |
const Allocator& = Allocator());
|
| 38 |
```
|
| 39 |
|
| 40 |
*Effects:* Constructs a `vector` equal to the range \[`first`, `last`),
|
| 41 |
using the specified allocator.
|