tmp/tmpvesh1_gk/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
#### Constructors
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
constexpr explicit vector(const Allocator&) noexcept;
|
| 5 |
```
|
| 6 |
|
|
@@ -41,8 +41,23 @@ template<class InputIterator>
|
|
| 41 |
using the specified allocator.
|
| 42 |
|
| 43 |
*Complexity:* Makes only N calls to the copy constructor of `T` (where N
|
| 44 |
is the distance between `first` and `last`) and no reallocations if
|
| 45 |
iterators `first` and `last` are of forward, bidirectional, or random
|
| 46 |
-
access categories. It makes order
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
|
|
|
| 1 |
+
#### Constructors <a id="vector.cons">[[vector.cons]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
constexpr explicit vector(const Allocator&) noexcept;
|
| 5 |
```
|
| 6 |
|
|
|
|
| 41 |
using the specified allocator.
|
| 42 |
|
| 43 |
*Complexity:* Makes only N calls to the copy constructor of `T` (where N
|
| 44 |
is the distance between `first` and `last`) and no reallocations if
|
| 45 |
iterators `first` and `last` are of forward, bidirectional, or random
|
| 46 |
+
access categories. It makes order N calls to the copy constructor of `T`
|
| 47 |
+
and order log N reallocations if they are just input iterators.
|
| 48 |
+
|
| 49 |
+
``` cpp
|
| 50 |
+
template<container-compatible-range<T> R>
|
| 51 |
+
constexpr vector(from_range_t, R&& rg, const Allocator& = Allocator());
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
*Effects:* Constructs a `vector` object with the elements of the range
|
| 55 |
+
`rg`, using the specified allocator.
|
| 56 |
+
|
| 57 |
+
*Complexity:* Initializes exactly N elements from the results of
|
| 58 |
+
dereferencing successive iterators of `rg`, where N is
|
| 59 |
+
`ranges::distance(rg)`. Performs no reallocations if `R` models
|
| 60 |
+
`ranges::forward_range` or `ranges::sized_range`; otherwise, performs
|
| 61 |
+
order log N reallocations and order N calls to the copy or move
|
| 62 |
+
constructor of `T`.
|
| 63 |
|