|
814 | 814 |
|
815 | 815 | // \ref{ios.base.storage}, storage
|
816 | 816 | static int xalloc();
|
817 |
| - long& iword(int index); |
818 |
| - void*& pword(int index); |
| 817 | + long& iword(int idx); |
| 818 | + void*& pword(int idx); |
819 | 819 |
|
820 | 820 | // destructor
|
821 | 821 | virtual ~ios_base();
|
822 | 822 |
|
823 | 823 | // \ref{ios.base.callback}, callbacks
|
824 | 824 | enum event { erase_event, imbue_event, copyfmt_event };
|
825 |
| - using event_callback = void (*)(event, ios_base&, int index); |
826 |
| - void register_callback(event_callback fn, int index); |
| 825 | + using event_callback = void (*)(event, ios_base&, int idx); |
| 826 | + void register_callback(event_callback fn, int idx); |
827 | 827 |
|
828 | 828 | ios_base(const ios_base&) = delete;
|
829 | 829 | ios_base& operator=(const ios_base&) = delete;
|
|
1327 | 1327 | \pnum
|
1328 | 1328 | \effects
|
1329 | 1329 | Calls each registered callback pair
|
1330 |
| -\tcode{(fn, index)}\iref{ios.base.callback} |
| 1330 | +\tcode{(fn, idx)}\iref{ios.base.callback} |
1331 | 1331 | as
|
1332 |
| -\tcode{(*fn)(imbue_event, *this, index)} |
| 1332 | +\tcode{(*fn)(imbue_event, *this, idx)} |
1333 | 1333 | at such a time that a call to
|
1334 | 1334 | \tcode{ios_base::getloc()}
|
1335 | 1335 | from within
|
|
1542 | 1542 |
|
1543 | 1543 | \indexlibrarymember{register_callback}{ios_base}%
|
1544 | 1544 | \begin{itemdecl}
|
1545 |
| -void register_callback(event_callback fn, int index); |
| 1545 | +void register_callback(event_callback fn, int idx); |
1546 | 1546 | \end{itemdecl}
|
1547 | 1547 |
|
1548 | 1548 | \begin{itemdescr}
|
1549 | 1549 | \pnum
|
1550 | 1550 | \effects
|
1551 | 1551 | Registers the pair
|
1552 |
| -\tcode{(fn, index)} |
| 1552 | +\tcode{(fn, idx)} |
1553 | 1553 | such that during calls to
|
1554 | 1554 | \tcode{imbue()}\iref{ios.base.locales},
|
1555 | 1555 | \tcode{copyfmt()},
|
|
1558 | 1558 | the function
|
1559 | 1559 | \tcode{fn}
|
1560 | 1560 | is called with argument
|
1561 |
| -\tcode{index}. |
| 1561 | +\tcode{idx}. |
1562 | 1562 | Functions registered are called when an event occurs, in opposite order of
|
1563 | 1563 | registration.
|
1564 | 1564 | Functions registered while a callback function is active are not called until the next event.
|
|
1605 | 1605 | Destroys an object of class
|
1606 | 1606 | \tcode{ios_base}.
|
1607 | 1607 | Calls each registered callback pair
|
1608 |
| -\tcode{(fn, index)}\iref{ios.base.callback} as |
1609 |
| -\tcode{(*fn)(\brk{}erase_event, *this, index)} |
| 1608 | +\tcode{(fn, idx)}\iref{ios.base.callback} as |
| 1609 | +\tcode{(*fn)(\brk{}erase_event, *this, idx)} |
1610 | 1610 | at such time that any
|
1611 | 1611 | \tcode{ios_base}
|
1612 | 1612 | member function called from within
|
|
2063 | 2063 | the corresponding member objects of \tcode{rhs} as follows:
|
2064 | 2064 |
|
2065 | 2065 | \begin{itemize}
|
2066 |
| -\item calls each registered callback pair \tcode{(fn, index)} as |
2067 |
| -\tcode{(*fn)(erase_event, *this, index)}; |
| 2066 | +\item calls each registered callback pair \tcode{(fn, idx)} as |
| 2067 | +\tcode{(*fn)(erase_event, *this, idx)}; |
2068 | 2068 |
|
2069 | 2069 | \item then, assigns to the member objects of \tcode{*this} the corresponding member objects of
|
2070 | 2070 | \tcode{rhs}, except that
|
|
2084 | 2084 | \end{itemize}
|
2085 | 2085 |
|
2086 | 2086 | \item then, calls each callback pair that was copied from \tcode{rhs} as
|
2087 |
| -\tcode{(*fn)(copyfmt_event, *this, index)}; |
| 2087 | +\tcode{(*fn)(copyfmt_event, *this, idx)}; |
2088 | 2088 |
|
2089 | 2089 | \item then, calls \tcode{exceptions(rhs.exceptions())}.
|
2090 | 2090 |
|
|
0 commit comments