From Jason Turner

[inplace.vector.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp6crtx32c/{from.md → to.md} +43 -0
tmp/tmp6crtx32c/{from.md → to.md} RENAMED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Constructors <a id="inplace.vector.cons">[[inplace.vector.cons]]</a>
2
+
3
+ ``` cpp
4
+ constexpr explicit inplace_vector(size_type n);
5
+ ```
6
+
7
+ *Preconditions:* `T` is *Cpp17DefaultInsertable* into `inplace_vector`.
8
+
9
+ *Effects:* Constructs an `inplace_vector` with `n` default-inserted
10
+ elements.
11
+
12
+ *Complexity:* Linear in `n`.
13
+
14
+ ``` cpp
15
+ constexpr inplace_vector(size_type n, const T& value);
16
+ ```
17
+
18
+ *Preconditions:* `T` is *Cpp17CopyInsertable* into `inplace_vector`.
19
+
20
+ *Effects:* Constructs an `inplace_vector` with `n` copies of `value`.
21
+
22
+ *Complexity:* Linear in `n`.
23
+
24
+ ``` cpp
25
+ template<class InputIterator>
26
+ constexpr inplace_vector(InputIterator first, InputIterator last);
27
+ ```
28
+
29
+ *Effects:* Constructs an `inplace_vector` equal to the range \[`first`,
30
+ `last`).
31
+
32
+ *Complexity:* Linear in `distance(first, last)`.
33
+
34
+ ``` cpp
35
+ template<container-compatible-range<T> R>
36
+ constexpr inplace_vector(from_range_t, R&& rg);
37
+ ```
38
+
39
+ *Effects:* Constructs an `inplace_vector` with the elements of the range
40
+ `rg`.
41
+
42
+ *Complexity:* Linear in `ranges::distance(rg)`.
43
+