|
5 | 5 | * function[meta id-type] |
6 | 6 |
|
7 | 7 | ```cpp |
8 | | -constexpr istreambuf_iterator() noexcept; |
9 | | -istreambuf_iterator(const istreambuf_iterator&) noexcept = default; |
10 | | -istreambuf_iterator(istream_type& s) noexcept; |
11 | | -istreambuf_iterator(streambuf_type* s) noexcept; |
12 | | -istreambuf_iterator(const proxy& p) noexcept; |
| 8 | +istreambuf_iterator() throw(); // (1) C++03 |
| 9 | +constexpr istreambuf_iterator() noexcept; // (1) C++11 |
| 10 | + |
| 11 | +constexpr istreambuf_iterator(default_sentinel_t) noexcept; // (2) C++11 |
| 12 | + |
| 13 | +istreambuf_iterator(const istreambuf_iterator&) noexcept = default; // (3) C++11 |
| 14 | + |
| 15 | +istreambuf_iterator(istream_type& s) throw(); // (4) C++03 |
| 16 | +istreambuf_iterator(istream_type& s) noexcept; // (4) C++11 |
| 17 | + |
| 18 | +istreambuf_iterator(streambuf_type* s) throw(); // (5) C++03 |
| 19 | +istreambuf_iterator(streambuf_type* s) noexcept; // (5) C++11 |
| 20 | + |
| 21 | +istreambuf_iterator(const proxy& p) throw(); // (6) C++03 |
| 22 | +istreambuf_iterator(const proxy& p) noexcept; // (6) C++11 |
13 | 23 | ``` |
| 24 | +* default_sentinel_t[link /reference/iterator/default_sentinel_t.md] |
14 | 25 |
|
15 | 26 | ## istreambuf_iteratorオブジェクトの構築 |
16 | | -- `istreambuf_iterator()`<br/>デフォルトコンストラクタメンバ変数として保持する`streambuf`オブジェクトへのポインタをヌル初期化する。 |
17 | | -- `istreambuf_iterator(istreamtype& s) noexcept`<br/>`s.rdbuf()`をメンバ変数として保持する。 |
18 | | -- `istreambuf_iterator(streambuf_type* s) noexcept`<br/>`s`をメンバ変数として保持する |
19 | | -- `istreambuf_iterator(const proxy& p) noexcept`<br/>後置`operator++()`が返すであろうproxyオブジェクトを受け取り、そのオブジェクトが指す`streambuf`オブジェクトへのポインタをメンバ変数として保持する。 |
| 27 | +- (1) : デフォルトコンストラクタ。メンバ変数として保持する`streambuf`オブジェクトへのポインタをヌル初期化する。 |
| 28 | +- (2) : [`default_sentinel`](/reference/iterator/default_sentinel_t.md)を受け取り、(1)と同等の構築をより明示的に行う。 |
| 29 | +- (3) : コピーコンストラクタ。 |
| 30 | +- (4) : `s.rdbuf()`をメンバ変数として保持する。 |
| 31 | +- (5) : `s`をメンバ変数として保持する。 |
| 32 | +- (6) : 後置`operator++()`が返すであろうproxyオブジェクトを受け取り、そのオブジェクトが指す`streambuf`オブジェクトへのポインタをメンバ変数として保持する。 |
20 | 33 |
|
21 | 34 |
|
22 | 35 | ## 例 |
|
0 commit comments