From Jason Turner

[istreambuf.iterator.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpvj7aa7qv/{from.md → to.md} +14 -9
tmp/tmpvj7aa7qv/{from.md → to.md} RENAMED
@@ -1,25 +1,30 @@
1
  #### `istreambuf_iterator` constructors <a id="istreambuf.iterator.cons">[[istreambuf.iterator.cons]]</a>
2
 
 
 
 
 
3
  ``` cpp
4
  constexpr istreambuf_iterator() noexcept;
5
  ```
6
 
7
- *Effects:* Constructs the end-of-stream iterator.
8
 
9
  ``` cpp
10
- istreambuf_iterator(basic_istream<charT,traits>& s) noexcept;
11
- istreambuf_iterator(basic_streambuf<charT,traits>* s) noexcept;
12
  ```
13
 
14
- *Effects:* Constructs an `istreambuf_iterator<>` that uses the
15
- `basic_streambuf<>` object `*(s.rdbuf())`, or `*s`, respectively.
16
- Constructs an end-of-stream iterator if `s.rdbuf()` is null.
 
 
 
 
17
 
18
  ``` cpp
19
  istreambuf_iterator(const proxy& p) noexcept;
20
  ```
21
 
22
- *Effects:* Constructs a `istreambuf_iterator<>` that uses the
23
- `basic_streambuf<>` object pointed to by the `proxy` object’s
24
- constructor argument `p`.
25
 
 
1
  #### `istreambuf_iterator` constructors <a id="istreambuf.iterator.cons">[[istreambuf.iterator.cons]]</a>
2
 
3
+ For each `istreambuf_iterator` constructor in this section, an
4
+ end-of-stream iterator is constructed if and only if the exposition-only
5
+ member `sbuf_` is initialized with a null pointer value.
6
+
7
  ``` cpp
8
  constexpr istreambuf_iterator() noexcept;
9
  ```
10
 
11
+ *Effects:* Initializes `sbuf_` with `nullptr`.
12
 
13
  ``` cpp
14
+ istreambuf_iterator(istream_type& s) noexcept;
 
15
  ```
16
 
17
+ *Effects:* Initializes `sbuf_` with `s.rdbuf()`.
18
+
19
+ ``` cpp
20
+ istreambuf_iterator(streambuf_type* s) noexcept;
21
+ ```
22
+
23
+ *Effects:* Initializes `sbuf_` with `s`.
24
 
25
  ``` cpp
26
  istreambuf_iterator(const proxy& p) noexcept;
27
  ```
28
 
29
+ *Effects:* Initializes `sbuf_` with `p.sbuf_`.
 
 
30