From Jason Turner

[ios.base.storage]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpfqgp1rib/{from.md → to.md} +17 -12
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 operations on the object.[^7] However, the value
24
- of the storage referred to is retained, so that until the next call to
25
- `copyfmt`, calling `iword` with the same index yields another reference
26
- to the same value. If the function fails[^8] and `*this` is a base class
27
- subobject of a `basic_ios<>` object or subobject, the effect is
28
- equivalent to calling `basic_ios<>::setstate(badbit)` on the derived
29
- object (which may throw `failure`).
 
 
 
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 operations on the object. However,
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[^9] and `*this` is a
49
- base class subobject of a `basic_ios<>` object or subobject, the effect
50
- is equivalent to calling `basic_ios<>::setstate(badbit)` on the derived
51
- object (which may throw `failure`).
 
 
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,