From Jason Turner

[list.cons]

Diff to HTML by rtfpessoa

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