From Jason Turner

[list.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpmnpiiokb/{from.md → to.md} +10 -0
tmp/tmpmnpiiokb/{from.md → to.md} RENAMED
@@ -37,5 +37,15 @@ template<class InputIterator>
37
 
38
  *Effects:* Constructs a `list` equal to the range \[`first`, `last`).
39
 
40
  *Complexity:* Linear in `distance(first, last)`.
41
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
  *Effects:* Constructs a `list` equal to the range \[`first`, `last`).
39
 
40
  *Complexity:* Linear in `distance(first, last)`.
41
 
42
+ ``` cpp
43
+ template<container-compatible-range<T> R>
44
+ list(from_range_t, R&& rg, const Allocator& = Allocator());
45
+ ```
46
+
47
+ *Effects:* Constructs a `list` object with the elements of the range
48
+ `rg`.
49
+
50
+ *Complexity:* Linear in `ranges::distance(rg)`.
51
+