|
8036 | 8036 |
|
8037 | 8037 | \pnum
|
8038 | 8038 | The function can make a write position available only if
|
8039 |
| -\tcode{(mode \& ios_base::out) != 0}. |
| 8039 | +\tcode{ios_base::out} is set in \tcode{mode}. |
8040 | 8040 | To make a write position available,
|
8041 | 8041 | the function reallocates (or initially allocates) an array object
|
8042 | 8042 | with a sufficient number of elements to hold
|
8043 | 8043 | the current array object (if any), plus
|
8044 | 8044 | at least
|
8045 | 8045 | one additional write position.
|
8046 |
| -If |
8047 |
| -\tcode{(mode \& ios_base::in) != 0}, |
| 8046 | +If \tcode{ios_base::in} is set in \tcode{mode}, |
8048 | 8047 | the function alters the read end pointer
|
8049 | 8048 | \tcode{egptr()}
|
8050 | 8049 | to point just past the new write position.
|
|
8065 | 8064 |
|
8066 | 8065 | \begin{libtab2}{\tcode{seekoff} positioning}{stringbuf.seekoff.pos}
|
8067 | 8066 | {p{2.5in}l}{Conditions}{Result}
|
8068 |
| -\tcode{(which \& ios_base::in)}\tcode{ == ios_base::in} & |
| 8067 | +\tcode{ios_base::in} is set in \tcode{which} & |
8069 | 8068 | positions the input sequence \\ \rowsep
|
8070 |
| -\tcode{(which \& ios_base::out)}\tcode{ == ios_base::out} & |
| 8069 | +\tcode{ios_base::out} is set in \tcode{which} & |
8071 | 8070 | positions the output sequence \\ \rowsep
|
8072 |
| -\tcode{(which \& (ios_base::in |}\br |
8073 |
| -\tcode{ios_base::out)) ==}\br |
8074 |
| -\tcode{(ios_base::in |}\br |
8075 |
| -\tcode{ios_base::out)}\br |
8076 |
| -and either\br |
| 8071 | +both \tcode{ios_base::in} and \tcode{ios_base::out} are |
| 8072 | +set in \tcode{which} and either\br |
8077 | 8073 | \tcode{way == ios_base::beg} or\br
|
8078 | 8074 | \tcode{way == ios_base::end} &
|
8079 | 8075 | positions both the input and the output sequences \\ \rowsep
|
|
9492 | 9488 |
|
9493 | 9489 | \pnum
|
9494 | 9490 | If the open operation succeeds and
|
9495 |
| -\tcode{(mode \& ios_base::ate) != 0}, |
| 9491 | +\tcode{ios_base::ate} is set in \tcode{mode}, |
9496 | 9492 | positions the file to the end
|
9497 | 9493 | (as if by calling \tcode{fseek(file, 0, SEEK_END)}, where
|
9498 | 9494 | \tcode{file} is the pointer returned by calling \tcode{fopen}).%
|
|
0 commit comments