From Jason Turner

[list.capacity]

Diff to HTML by rtfpessoa

tmp/tmp43l5xcxn/{from.md → to.md} RENAMED
@@ -3,11 +3,11 @@
3
  ``` cpp
4
  void resize(size_type sz);
5
  ```
6
 
7
  *Effects:* If `size() < sz`, appends `sz - size()` default-inserted
8
- elements to the sequence. If `sz <= size()`, equivalent to
9
 
10
  ``` cpp
11
  list<T>::iterator it = begin();
12
  advance(it, sz);
13
  erase(it, end());
@@ -17,11 +17,11 @@ erase(it, end());
17
 
18
  ``` cpp
19
  void resize(size_type sz, const T& c);
20
  ```
21
 
22
- *Effects:*
23
 
24
  ``` cpp
25
  if (sz > size())
26
  insert(end(), sz-size(), c);
27
  else if (sz < size()) {
 
3
  ``` cpp
4
  void resize(size_type sz);
5
  ```
6
 
7
  *Effects:* If `size() < sz`, appends `sz - size()` default-inserted
8
+ elements to the sequence. If `sz <= size()`, equivalent to:
9
 
10
  ``` cpp
11
  list<T>::iterator it = begin();
12
  advance(it, sz);
13
  erase(it, end());
 
17
 
18
  ``` cpp
19
  void resize(size_type sz, const T& c);
20
  ```
21
 
22
+ *Effects:* As if by:
23
 
24
  ``` cpp
25
  if (sz > size())
26
  insert(end(), sz-size(), c);
27
  else if (sz < size()) {