|
6558 | 6558 | friend bool operator==(const istream_iterator& i, default_sentinel_t); |
6559 | 6559 |
|
6560 | 6560 | private: |
6561 | | - basic_istream<charT,traits>* in_stream; // \expos |
6562 | | - T value; // \expos |
| 6561 | + basic_istream<charT,traits>* @\exposid{in-stream}@; // \expos |
| 6562 | + T @\exposid{value}@; // \expos |
6563 | 6563 | }; |
6564 | 6564 | } |
6565 | 6565 | \end{codeblock} |
|
6579 | 6579 | \begin{itemdescr} |
6580 | 6580 | \pnum |
6581 | 6581 | \effects |
6582 | | -Constructs the end-of-stream iterator, value-initializing \tcode{value}. |
| 6582 | +Constructs the end-of-stream iterator, value-initializing \exposid{value}. |
6583 | 6583 |
|
6584 | 6584 | \pnum |
6585 | 6585 | \ensures |
6586 | | -\tcode{in_stream == nullptr} is \tcode{true}. |
| 6586 | +\tcode{\exposid{in-stream} == nullptr} is \tcode{true}. |
6587 | 6587 |
|
6588 | 6588 | \pnum |
6589 | 6589 | \remarks |
|
6601 | 6601 | \begin{itemdescr} |
6602 | 6602 | \pnum |
6603 | 6603 | \effects |
6604 | | -Initializes \tcode{in_stream} with \tcode{addressof(s)}, |
6605 | | -value-initializes \tcode{value}, |
6606 | | -and then calls \tcode{operator++()}. |
| 6604 | +Initializes \exposid{in-stream} with \tcode{addressof(s)}, |
| 6605 | +value-initializes \exposid{value}, |
| 6606 | +and then calls\linebreak \tcode{operator++()}. |
6607 | 6607 | \end{itemdescr} |
6608 | 6608 |
|
6609 | 6609 |
|
|
6615 | 6615 | \begin{itemdescr} |
6616 | 6616 | \pnum |
6617 | 6617 | \effects |
6618 | | -Initializes \tcode{in_stream} with \tcode{x.in_stream} and |
6619 | | -initializes \tcode{value} with \tcode{x.value}. |
| 6618 | +Initializes \exposid{in-stream} with \tcode{x.\exposid{in-stream}} and |
| 6619 | +initializes \exposid{value} with \tcode{x.\exposid{value}}. |
6620 | 6620 |
|
6621 | 6621 | \pnum |
6622 | 6622 | \remarks |
6623 | 6623 | An invocation of this constructor may be used in a core constant expression |
6624 | | -if and only if the initialization of \tcode{value} from \tcode{x.value} |
| 6624 | +if and only if the initialization of \exposid{value} from \tcode{x.\exposid{value}} |
6625 | 6625 | is a constant subexpression\iref{defns.const.subexpr}. |
6626 | 6626 | The exception specification is equivalent to |
6627 | 6627 | \tcode{is_nothrow_copy_constructible_v<T>}. |
|
6649 | 6649 | \begin{itemdescr} |
6650 | 6650 | \pnum |
6651 | 6651 | \expects |
6652 | | -\tcode{in_stream != nullptr} is \tcode{true}. |
| 6652 | +\tcode{\exposid{in-stream} != nullptr} is \tcode{true}. |
6653 | 6653 |
|
6654 | 6654 | \pnum |
6655 | 6655 | \returns |
6656 | | -\tcode{value}. |
| 6656 | +\exposid{value}. |
6657 | 6657 | \end{itemdescr} |
6658 | 6658 |
|
6659 | 6659 | \indexlibrarymember{operator->}{istream_iterator}% |
|
6664 | 6664 | \begin{itemdescr} |
6665 | 6665 | \pnum |
6666 | 6666 | \expects |
6667 | | -\tcode{in_stream != nullptr} is \tcode{true}. |
| 6667 | +\tcode{\exposid{in-stream} != nullptr} is \tcode{true}. |
6668 | 6668 |
|
6669 | 6669 | \pnum |
6670 | 6670 | \returns |
6671 | | -\tcode{addressof(value)}. |
| 6671 | +\tcode{addressof(\exposid{value})}. |
6672 | 6672 | \end{itemdescr} |
6673 | 6673 |
|
6674 | 6674 | \indexlibrarymember{operator++}{istream_iterator}% |
|
6679 | 6679 | \begin{itemdescr} |
6680 | 6680 | \pnum |
6681 | 6681 | \expects |
6682 | | -\tcode{in_stream != nullptr} is \tcode{true}. |
| 6682 | +\tcode{\exposid{in-stream} != nullptr} is \tcode{true}. |
6683 | 6683 |
|
6684 | 6684 | \pnum |
6685 | 6685 | \effects |
6686 | 6686 | Equivalent to: |
6687 | 6687 | \begin{codeblock} |
6688 | | -if (!(*in_stream >> value)) |
6689 | | - in_stream = nullptr; |
| 6688 | +if (!(*@\exposid{in-stream}@ >> \exposid{value})) |
| 6689 | + @\exposid{in-stream}@ = nullptr; |
6690 | 6690 | \end{codeblock} |
6691 | 6691 |
|
6692 | 6692 | \pnum |
|
6702 | 6702 | \begin{itemdescr} |
6703 | 6703 | \pnum |
6704 | 6704 | \expects |
6705 | | -\tcode{in_stream != nullptr} is \tcode{true}. |
| 6705 | +\tcode{\exposid{in-stream} != nullptr} is \tcode{true}. |
6706 | 6706 |
|
6707 | 6707 | \pnum |
6708 | 6708 | \effects |
|
6724 | 6724 | \begin{itemdescr} |
6725 | 6725 | \pnum |
6726 | 6726 | \returns |
6727 | | -\tcode{x.in_stream == y.in_stream}. |
| 6727 | +\tcode{x.\exposid{in-stream} == y.\exposid{in-stream}}. |
6728 | 6728 | \end{itemdescr} |
6729 | 6729 |
|
6730 | 6730 | \indexlibrarymember{operator==}{istream_iterator}% |
|
6735 | 6735 | \begin{itemdescr} |
6736 | 6736 | \pnum |
6737 | 6737 | \returns |
6738 | | -\tcode{!i.in_stream}. |
| 6738 | +\tcode{!i.\exposid{in-stream}}. |
6739 | 6739 | \end{itemdescr} |
6740 | 6740 |
|
6741 | 6741 | \rSec2[ostream.iterator]{Class template \tcode{ostream_iterator}} |
|
0 commit comments