From Jason Turner

[iostreamclass]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpfs34v6wm/{from.md → to.md} +10 -13
tmp/tmpfs34v6wm/{from.md → to.md} RENAMED
@@ -19,62 +19,59 @@ namespace std {
19
  // [iostream.dest], destructor
20
  virtual ~basic_iostream();
21
 
22
  protected:
23
  // [iostream.cons], constructor
24
- basic_iostream(const basic_iostream& rhs) = delete;
25
  basic_iostream(basic_iostream&& rhs);
26
 
27
  // [iostream.assign], assign and swap
28
- basic_iostream& operator=(const basic_iostream& rhs) = delete;
29
  basic_iostream& operator=(basic_iostream&& rhs);
30
  void swap(basic_iostream& rhs);
31
  };
32
  }
33
  ```
34
 
35
  The class template `basic_iostream` inherits a number of functions that
36
  allow reading input and writing output to sequences controlled by a
37
  stream buffer.
38
 
39
- ##### `basic_iostream` constructors <a id="iostream.cons">[[iostream.cons]]</a>
40
 
41
  ``` cpp
42
  explicit basic_iostream(basic_streambuf<charT, traits>* sb);
43
  ```
44
 
45
- *Effects:* Constructs an object of class `basic_iostream`, initializing
46
- the base class subobjects with
47
- `basic_istream<charT, traits>(sb)` ([[istream]]) and
48
- `basic_ostream<charT, traits>(sb)` ([[ostream]]).
49
 
50
- *Postconditions:* `rdbuf() == sb` and `gcount() == 0`.
51
 
52
  ``` cpp
53
  basic_iostream(basic_iostream&& rhs);
54
  ```
55
 
56
  *Effects:* Move constructs from the rvalue `rhs` by constructing the
57
  `basic_istream` base class with `move(rhs)`.
58
 
59
- ##### `basic_iostream` destructor <a id="iostream.dest">[[iostream.dest]]</a>
60
 
61
  ``` cpp
62
  virtual ~basic_iostream();
63
  ```
64
 
65
- *Effects:* Destroys an object of class `basic_iostream`.
66
-
67
  *Remarks:* Does not perform any operations on `rdbuf()`.
68
 
69
- ##### `basic_iostream` assign and swap <a id="iostream.assign">[[iostream.assign]]</a>
70
 
71
  ``` cpp
72
  basic_iostream& operator=(basic_iostream&& rhs);
73
  ```
74
 
75
- *Effects:* As if by `swap(rhs)`.
76
 
77
  ``` cpp
78
  void swap(basic_iostream& rhs);
79
  ```
80
 
 
19
  // [iostream.dest], destructor
20
  virtual ~basic_iostream();
21
 
22
  protected:
23
  // [iostream.cons], constructor
24
+ basic_iostream(const basic_iostream&) = delete;
25
  basic_iostream(basic_iostream&& rhs);
26
 
27
  // [iostream.assign], assign and swap
28
+ basic_iostream& operator=(const basic_iostream&) = delete;
29
  basic_iostream& operator=(basic_iostream&& rhs);
30
  void swap(basic_iostream& rhs);
31
  };
32
  }
33
  ```
34
 
35
  The class template `basic_iostream` inherits a number of functions that
36
  allow reading input and writing output to sequences controlled by a
37
  stream buffer.
38
 
39
+ ##### Constructors <a id="iostream.cons">[[iostream.cons]]</a>
40
 
41
  ``` cpp
42
  explicit basic_iostream(basic_streambuf<charT, traits>* sb);
43
  ```
44
 
45
+ *Effects:* Initializes the base class subobjects with
46
+ `basic_istream<charT, traits>(sb)` [[istream]] and
47
+ `basic_ostream<charT, traits>(sb)` [[ostream]].
 
48
 
49
+ *Ensures:* `rdbuf() == sb` and `gcount() == 0`.
50
 
51
  ``` cpp
52
  basic_iostream(basic_iostream&& rhs);
53
  ```
54
 
55
  *Effects:* Move constructs from the rvalue `rhs` by constructing the
56
  `basic_istream` base class with `move(rhs)`.
57
 
58
+ ##### Destructor <a id="iostream.dest">[[iostream.dest]]</a>
59
 
60
  ``` cpp
61
  virtual ~basic_iostream();
62
  ```
63
 
 
 
64
  *Remarks:* Does not perform any operations on `rdbuf()`.
65
 
66
+ ##### Assignment and swap <a id="iostream.assign">[[iostream.assign]]</a>
67
 
68
  ``` cpp
69
  basic_iostream& operator=(basic_iostream&& rhs);
70
  ```
71
 
72
+ *Effects:* Equivalent to: `swap(rhs)`.
73
 
74
  ``` cpp
75
  void swap(basic_iostream& rhs);
76
  ```
77