|
6544 | 6544 | friend bool operator==(const istream_iterator& i, default_sentinel_t); |
6545 | 6545 |
|
6546 | 6546 | private: |
6547 | | - basic_istream<charT,traits>* in_stream; // \expos |
6548 | | - T value; // \expos |
| 6547 | + basic_istream<charT,traits>* @\exposid{in-stream}@; // \expos |
| 6548 | + T @\exposid{value}@; // \expos |
6549 | 6549 | }; |
6550 | 6550 | } |
6551 | 6551 | \end{codeblock} |
|
6565 | 6565 | \begin{itemdescr} |
6566 | 6566 | \pnum |
6567 | 6567 | \effects |
6568 | | -Constructs the end-of-stream iterator, value-initializing \tcode{value}. |
| 6568 | +Constructs the end-of-stream iterator, value-initializing \exposid{value}. |
6569 | 6569 |
|
6570 | 6570 | \pnum |
6571 | 6571 | \ensures |
6572 | | -\tcode{in_stream == nullptr} is \tcode{true}. |
| 6572 | +\tcode{\exposid{in-stream} == nullptr} is \tcode{true}. |
6573 | 6573 |
|
6574 | 6574 | \pnum |
6575 | 6575 | \remarks |
|
6587 | 6587 | \begin{itemdescr} |
6588 | 6588 | \pnum |
6589 | 6589 | \effects |
6590 | | -Initializes \tcode{in_stream} with \tcode{addressof(s)}, |
6591 | | -value-initializes \tcode{value}, |
6592 | | -and then calls \tcode{operator++()}. |
| 6590 | +Initializes \exposid{in-stream} with \tcode{addressof(s)}, |
| 6591 | +value-initializes \exposid{value}, |
| 6592 | +and then calls\linebreak \tcode{operator++()}. |
6593 | 6593 | \end{itemdescr} |
6594 | 6594 |
|
6595 | 6595 |
|
|
6601 | 6601 | \begin{itemdescr} |
6602 | 6602 | \pnum |
6603 | 6603 | \effects |
6604 | | -Initializes \tcode{in_stream} with \tcode{x.in_stream} and |
6605 | | -initializes \tcode{value} with \tcode{x.value}. |
| 6604 | +Initializes \exposid{in-stream} with \tcode{x.\exposid{in-stream}} and |
| 6605 | +initializes \exposid{value} with \tcode{x.\exposid{value}}. |
6606 | 6606 |
|
6607 | 6607 | \pnum |
6608 | 6608 | \remarks |
6609 | 6609 | An invocation of this constructor may be used in a core constant expression |
6610 | | -if and only if the initialization of \tcode{value} from \tcode{x.value} |
| 6610 | +if and only if the initialization of \exposid{value} from \tcode{x.\exposid{value}} |
6611 | 6611 | is a constant subexpression\iref{defns.const.subexpr}. |
6612 | 6612 | The exception specification is equivalent to |
6613 | 6613 | \tcode{is_nothrow_copy_constructible_v<T>}. |
|
6635 | 6635 | \begin{itemdescr} |
6636 | 6636 | \pnum |
6637 | 6637 | \expects |
6638 | | -\tcode{in_stream != nullptr} is \tcode{true}. |
| 6638 | +\tcode{\exposid{in-stream} != nullptr} is \tcode{true}. |
6639 | 6639 |
|
6640 | 6640 | \pnum |
6641 | 6641 | \returns |
6642 | | -\tcode{value}. |
| 6642 | +\exposid{value}. |
6643 | 6643 | \end{itemdescr} |
6644 | 6644 |
|
6645 | 6645 | \indexlibrarymember{operator->}{istream_iterator}% |
|
6650 | 6650 | \begin{itemdescr} |
6651 | 6651 | \pnum |
6652 | 6652 | \expects |
6653 | | -\tcode{in_stream != nullptr} is \tcode{true}. |
| 6653 | +\tcode{\exposid{in-stream} != nullptr} is \tcode{true}. |
6654 | 6654 |
|
6655 | 6655 | \pnum |
6656 | 6656 | \returns |
6657 | | -\tcode{addressof(value)}. |
| 6657 | +\tcode{addressof(\exposid{value})}. |
6658 | 6658 | \end{itemdescr} |
6659 | 6659 |
|
6660 | 6660 | \indexlibrarymember{operator++}{istream_iterator}% |
|
6665 | 6665 | \begin{itemdescr} |
6666 | 6666 | \pnum |
6667 | 6667 | \expects |
6668 | | -\tcode{in_stream != nullptr} is \tcode{true}. |
| 6668 | +\tcode{\exposid{in-stream} != nullptr} is \tcode{true}. |
6669 | 6669 |
|
6670 | 6670 | \pnum |
6671 | 6671 | \effects |
6672 | 6672 | Equivalent to: |
6673 | 6673 | \begin{codeblock} |
6674 | | -if (!(*in_stream >> value)) |
6675 | | - in_stream = nullptr; |
| 6674 | +if (!(*@\exposid{in-stream}@ >> \exposid{value})) |
| 6675 | + @\exposid{in-stream}@ = nullptr; |
6676 | 6676 | \end{codeblock} |
6677 | 6677 |
|
6678 | 6678 | \pnum |
|
6688 | 6688 | \begin{itemdescr} |
6689 | 6689 | \pnum |
6690 | 6690 | \expects |
6691 | | -\tcode{in_stream != nullptr} is \tcode{true}. |
| 6691 | +\tcode{\exposid{in-stream} != nullptr} is \tcode{true}. |
6692 | 6692 |
|
6693 | 6693 | \pnum |
6694 | 6694 | \effects |
|
6710 | 6710 | \begin{itemdescr} |
6711 | 6711 | \pnum |
6712 | 6712 | \returns |
6713 | | -\tcode{x.in_stream == y.in_stream}. |
| 6713 | +\tcode{x.\exposid{in-stream} == y.\exposid{in-stream}}. |
6714 | 6714 | \end{itemdescr} |
6715 | 6715 |
|
6716 | 6716 | \indexlibrarymember{operator==}{istream_iterator}% |
|
6721 | 6721 | \begin{itemdescr} |
6722 | 6722 | \pnum |
6723 | 6723 | \returns |
6724 | | -\tcode{!i.in_stream}. |
| 6724 | +\tcode{!i.\exposid{in-stream}}. |
6725 | 6725 | \end{itemdescr} |
6726 | 6726 |
|
6727 | 6727 | \rSec2[ostream.iterator]{Class template \tcode{ostream_iterator}} |
|
0 commit comments