|
5383 | 5383 | Characters are extracted until any of the following occurs:
|
5384 | 5384 | \begin{itemize}
|
5385 | 5385 | \item
|
5386 |
| -\tcode{n != numeric_limits<streamsize>::max()}\iref{numeric.limits} |
| 5386 | +\tcode{n != numeric_limits<streamsize>::max()} is \keyword{true}\iref{numeric.limits} |
5387 | 5387 | and
|
5388 | 5388 | \tcode{n} characters have been extracted so far
|
5389 | 5389 | \item
|
|
5493 | 5493 | into successive locations of an array whose first element is designated by
|
5494 | 5494 | \tcode{s}.
|
5495 | 5495 | If
|
5496 |
| -\tcode{rdbuf()->in_avail() == -1}, |
| 5496 | +\tcode{rdbuf()->in_avail() == -1} is \keyword{true}, |
5497 | 5497 | calls
|
5498 | 5498 | \tcode{setstate(eofbit)}
|
5499 | 5499 | (which may throw
|
|
5502 | 5502 | \begin{itemize}
|
5503 | 5503 | \item
|
5504 | 5504 | If
|
5505 |
| -\tcode{rdbuf()->in_avail() == 0}, |
| 5505 | +\tcode{rdbuf()->in_avail() == 0} is \keyword{true}, |
5506 | 5506 | extracts no characters
|
5507 | 5507 | \item
|
5508 | 5508 | If
|
5509 |
| -\tcode{rdbuf()->in_avail() > 0}, |
| 5509 | +\tcode{rdbuf()->in_avail() > 0} is \keyword{true}, |
5510 | 5510 | extracts
|
5511 | 5511 | \tcode{min(rdbuf()->in_avail(), n))}.
|
5512 | 5512 | \end{itemize}
|
|
5644 | 5644 | \pnum
|
5645 | 5645 | \returns
|
5646 | 5646 | After constructing a \tcode{sentry} object, if
|
5647 |
| -\tcode{fail() != false}, |
| 5647 | +\tcode{fail()} is \keyword{true}, |
5648 | 5648 | returns
|
5649 | 5649 | \tcode{pos_type(-1)}
|
5650 | 5650 | to indicate failure.
|
|
5667 | 5667 | returned by subsequent calls to
|
5668 | 5668 | \tcode{gcount()}.
|
5669 | 5669 | After constructing a \tcode{sentry} object, if
|
5670 |
| -\tcode{fail() != true}, |
| 5670 | +\tcode{fail()} is \keyword{false}, |
5671 | 5671 | executes
|
5672 | 5672 | \tcode{rdbuf()->pubseekpos(pos, ios_base::in)}.
|
5673 | 5673 | In case of failure, the function calls
|
|
5692 | 5692 | does not count the number of characters extracted, and
|
5693 | 5693 | does not affect the value returned by subsequent calls to \tcode{gcount()}.
|
5694 | 5694 | After constructing a \tcode{sentry} object, if
|
5695 |
| -\tcode{fail() != true}, |
| 5695 | +\tcode{fail()} is \keyword{false}, |
5696 | 5696 | executes
|
5697 | 5697 | \tcode{rdbuf()->pubseekoff(off, dir, ios_base::in)}.
|
5698 | 5698 | In case of failure, the function calls \tcode{setstate(\brk{}failbit)} (which may throw
|
|
5821 | 5821 |
|
5822 | 5822 | \pnum
|
5823 | 5823 | \ensures
|
5824 |
| -\tcode{rdbuf() == sb} |
| 5824 | +\tcode{rdbuf() == sb} is \keyword{true} |
5825 | 5825 | and
|
5826 |
| -\tcode{gcount() == 0}. |
| 5826 | +\tcode{gcount() == 0} is \keyword{true}. |
5827 | 5827 | \end{itemdescr}
|
5828 | 5828 |
|
5829 | 5829 | \indexlibraryctor{basic_iostream}%
|
|
0 commit comments