tmp/tmpfqgp1rib/{from.md → to.md}
RENAMED
|
@@ -18,17 +18,20 @@ long& iword(int idx);
|
|
| 18 |
*Effects:* If `iarray` is a null pointer, allocates an array of `long`
|
| 19 |
of unspecified size and stores a pointer to its first element in
|
| 20 |
`iarray`. The function then extends the array pointed at by `iarray` as
|
| 21 |
necessary to include the element `iarray[idx]`. Each newly allocated
|
| 22 |
element of the array is initialized to zero. The reference returned is
|
| 23 |
-
invalid after any other
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
*Returns:* On success `iarray[idx]`. On failure, a valid `long&`
|
| 32 |
initialized to 0.
|
| 33 |
|
| 34 |
``` cpp
|
|
@@ -40,17 +43,19 @@ void*& pword(int idx);
|
|
| 40 |
*Effects:* If `parray` is a null pointer, allocates an array of pointers
|
| 41 |
to `void` of unspecified size and stores a pointer to its first element
|
| 42 |
in `parray`. The function then extends the array pointed at by `parray`
|
| 43 |
as necessary to include the element `parray[idx]`. Each newly allocated
|
| 44 |
element of the array is initialized to a null pointer. The reference
|
| 45 |
-
returned is invalid after any other
|
| 46 |
the value of the storage referred to is retained, so that until the next
|
| 47 |
call to `copyfmt`, calling `pword` with the same index yields another
|
| 48 |
-
reference to the same value. If the function fails[^
|
| 49 |
-
|
| 50 |
-
is
|
| 51 |
-
|
|
|
|
|
|
|
| 52 |
|
| 53 |
*Returns:* On success `parray[idx]`. On failure a valid `void*&`
|
| 54 |
initialized to 0.
|
| 55 |
|
| 56 |
*Remarks:* After a subsequent call to `pword(int)` for the same object,
|
|
|
|
| 18 |
*Effects:* If `iarray` is a null pointer, allocates an array of `long`
|
| 19 |
of unspecified size and stores a pointer to its first element in
|
| 20 |
`iarray`. The function then extends the array pointed at by `iarray` as
|
| 21 |
necessary to include the element `iarray[idx]`. Each newly allocated
|
| 22 |
element of the array is initialized to zero. The reference returned is
|
| 23 |
+
invalid after any other operation on the object.[^6]
|
| 24 |
+
|
| 25 |
+
However, the value of the storage referred to is retained, so that until
|
| 26 |
+
the next call to `copyfmt`, calling `iword` with the same index yields
|
| 27 |
+
another reference to the same value. If the function fails[^7]
|
| 28 |
+
|
| 29 |
+
and `*this` is a base class subobject of a `basic_ios<>` object or
|
| 30 |
+
subobject, the effect is equivalent to calling
|
| 31 |
+
`basic_ios<>::setstate(badbit)` on the derived object (which may throw
|
| 32 |
+
`failure`).
|
| 33 |
|
| 34 |
*Returns:* On success `iarray[idx]`. On failure, a valid `long&`
|
| 35 |
initialized to 0.
|
| 36 |
|
| 37 |
``` cpp
|
|
|
|
| 43 |
*Effects:* If `parray` is a null pointer, allocates an array of pointers
|
| 44 |
to `void` of unspecified size and stores a pointer to its first element
|
| 45 |
in `parray`. The function then extends the array pointed at by `parray`
|
| 46 |
as necessary to include the element `parray[idx]`. Each newly allocated
|
| 47 |
element of the array is initialized to a null pointer. The reference
|
| 48 |
+
returned is invalid after any other operation on the object. However,
|
| 49 |
the value of the storage referred to is retained, so that until the next
|
| 50 |
call to `copyfmt`, calling `pword` with the same index yields another
|
| 51 |
+
reference to the same value. If the function fails[^8]
|
| 52 |
+
|
| 53 |
+
and `*this` is a base class subobject of a `basic_ios<>` object or
|
| 54 |
+
subobject, the effect is equivalent to calling
|
| 55 |
+
`basic_ios<>::setstate(badbit)` on the derived object (which may throw
|
| 56 |
+
`failure`).
|
| 57 |
|
| 58 |
*Returns:* On success `parray[idx]`. On failure a valid `void*&`
|
| 59 |
initialized to 0.
|
| 60 |
|
| 61 |
*Remarks:* After a subsequent call to `pword(int)` for the same object,
|