From Jason Turner

[list.cons]

Diff to HTML by rtfpessoa

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