From Jason Turner

[istream.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpwgfqera4/{from.md → to.md} +7 -11
tmp/tmpwgfqera4/{from.md → to.md} RENAMED
@@ -1,29 +1,25 @@
1
- ##### `basic_istream` constructors <a id="istream.cons">[[istream.cons]]</a>
2
 
3
  ``` cpp
4
  explicit basic_istream(basic_streambuf<charT, traits>* sb);
5
  ```
6
 
7
- *Effects:* Constructs an object of class `basic_istream`, initializing
8
- the base class subobject with
9
- `basic_ios::init(sb)` ([[basic.ios.cons]]).
10
 
11
- *Postconditions:* `gcount() == 0`.
12
 
13
  ``` cpp
14
  basic_istream(basic_istream&& rhs);
15
  ```
16
 
17
- *Effects:* Move constructs from the rvalue `rhs`. This is accomplished
18
- by default constructing the base class, copying the `gcount()` from
19
- `rhs`, calling `basic_ios<charT, traits>::move(rhs)` to initialize the
20
- base class, and setting the `gcount()` for `rhs` to 0.
21
 
22
  ``` cpp
23
  virtual ~basic_istream();
24
  ```
25
 
26
- *Effects:* Destroys an object of class `basic_istream`.
27
-
28
  *Remarks:* Does not perform any operations of `rdbuf()`.
29
 
 
1
+ ##### Constructors <a id="istream.cons">[[istream.cons]]</a>
2
 
3
  ``` cpp
4
  explicit basic_istream(basic_streambuf<charT, traits>* sb);
5
  ```
6
 
7
+ *Effects:* Initializes the base class subobject with
8
+ `basic_ios::init(sb)` [[basic.ios.cons]].
 
9
 
10
+ *Ensures:* `gcount() == 0`.
11
 
12
  ``` cpp
13
  basic_istream(basic_istream&& rhs);
14
  ```
15
 
16
+ *Effects:* Default constructs the base class, copies the `gcount()` from
17
+ `rhs`, calls `basic_ios<charT, traits>::move(rhs)` to initialize the
18
+ base class, and sets the `gcount()` for `rhs` to 0.
 
19
 
20
  ``` cpp
21
  virtual ~basic_istream();
22
  ```
23
 
 
 
24
  *Remarks:* Does not perform any operations of `rdbuf()`.
25