Skip to content

Commit edd0a00

Browse files
committed
Merge pull request #740 from AlisdairM/fix_constructors_in_library_index
[18-28] Fix index entry for constructors
2 parents bc46015 + 05521fa commit edd0a00

9 files changed

+167
-199
lines changed

source/containers.tex

+46-52
Large diffs are not rendered by default.

source/diagnostics.tex

+28-37
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
\indexlibrary{\idxcode{domain_error}}%
5555
\indexlibrary{\idxcode{invalid_argument}}%
5656
\indexlibrary{\idxcode{length_error}}%
57-
\indexlibrary{\idxcode{out_of_range_error}}%
57+
\indexlibrary{\idxcode{out_of_range}}%
5858
\indexlibrary{\idxcode{runtime_error}}%
5959
\indexlibrary{\idxcode{range_error}}%
6060
\indexlibrary{\idxcode{overflow_error}}%
@@ -95,7 +95,7 @@
9595
the program executes, such as violations of logical preconditions or class
9696
invariants.
9797

98-
\indexlibrary{\idxcode{logic_error}!\tcode{logic_error}}%
98+
\indexlibrary{\idxcode{logic_error}!constructor}%
9999
\begin{itemdecl}
100100
logic_error(const string& what_arg);
101101
\end{itemdecl}
@@ -111,7 +111,7 @@
111111
\tcode{strcmp(what(), what_arg.c_str()) == 0}.
112112
\end{itemdescr}
113113

114-
\indexlibrary{\idxcode{logic_error}!\tcode{logic_error}}%
114+
\indexlibrary{\idxcode{logic_error}!constructor}%
115115
\begin{itemdecl}
116116
logic_error(const char* what_arg);
117117
\end{itemdecl}
@@ -146,7 +146,7 @@
146146
defines the type of objects thrown as
147147
exceptions by the implementation to report domain errors.
148148

149-
\indexlibrary{\idxcode{domain_error}!\tcode{domain_error}}%
149+
\indexlibrary{\idxcode{domain_error}!constructor}%
150150
\begin{itemdecl}
151151
domain_error(const string& what_arg);
152152
\end{itemdecl}
@@ -162,7 +162,7 @@
162162
\tcode{strcmp(what(), what_arg.c_str()) == 0}.
163163
\end{itemdescr}
164164

165-
\indexlibrary{\idxcode{domain_error}!\tcode{domain_error}}%
165+
\indexlibrary{\idxcode{domain_error}!constructor}%
166166
\begin{itemdecl}
167167
domain_error(const char* what_arg);
168168
\end{itemdecl}
@@ -196,7 +196,7 @@
196196
\tcode{invalid_argument}
197197
defines the type of objects thrown as exceptions to report an invalid argument.
198198

199-
\indexlibrary{\idxcode{invalid_argument}!\tcode{invalid_argument}}%
199+
\indexlibrary{\idxcode{invalid_argument}!constructor}%
200200
\begin{itemdecl}
201201
invalid_argument(const string& what_arg);
202202
\end{itemdecl}
@@ -212,7 +212,7 @@
212212
\tcode{strcmp(what(), what_arg.c_str()) == 0}.
213213
\end{itemdescr}
214214

215-
\indexlibrary{\idxcode{invalid_argument}!\tcode{invalid_argument}}%
215+
\indexlibrary{\idxcode{invalid_argument}!constructor}%
216216
\begin{itemdecl}
217217
invalid_argument(const char* what_arg);
218218
\end{itemdecl}
@@ -248,7 +248,7 @@
248248
to report an attempt to produce
249249
an object whose length exceeds its maximum allowable size.
250250

251-
\indexlibrary{\idxcode{length_error}!\tcode{length_error}}%
251+
\indexlibrary{\idxcode{length_error}!constructor}%
252252
\begin{itemdecl}
253253
length_error(const string& what_arg);
254254
\end{itemdecl}
@@ -264,7 +264,7 @@
264264
\tcode{strcmp(what(), what_arg.c_str()) == 0}.
265265
\end{itemdescr}
266266

267-
\indexlibrary{\idxcode{length_error}!\tcode{length_error}}%
267+
\indexlibrary{\idxcode{length_error}!constructor}%
268268
\begin{itemdecl}
269269
length_error(const char* what_arg);
270270
\end{itemdecl}
@@ -300,7 +300,7 @@
300300
argument value not in its expected range.
301301
\indextext{argument}
302302

303-
\indexlibrary{\idxcode{out_of_range}!\tcode{out_of_range}}%
303+
\indexlibrary{\idxcode{out_of_range}!constructor}%
304304
\begin{itemdecl}
305305
out_of_range(const string& what_arg);
306306
\end{itemdecl}
@@ -316,7 +316,7 @@
316316
\tcode{strcmp(what(), what_arg.c_str()) == 0}.
317317
\end{itemdescr}
318318

319-
\indexlibrary{\idxcode{out_of_range}!\tcode{out_of_range}}%
319+
\indexlibrary{\idxcode{out_of_range}!constructor}%
320320
\begin{itemdecl}
321321
out_of_range(const char* what_arg);
322322
\end{itemdecl}
@@ -351,7 +351,7 @@
351351
defines the type of objects thrown as exceptions to report errors presumably detectable only
352352
when the program executes.
353353

354-
\indexlibrary{\idxcode{runtime_error}!\tcode{runtime_error}}%
354+
\indexlibrary{\idxcode{runtime_error}!constructor}%
355355
\begin{itemdecl}
356356
runtime_error(const string& what_arg);
357357
\end{itemdecl}
@@ -367,7 +367,7 @@
367367
\tcode{strcmp(what(), what_arg.c_str()) == 0}.
368368
\end{itemdescr}
369369

370-
\indexlibrary{\idxcode{runtime_error}!\tcode{runtime_error}}%
370+
\indexlibrary{\idxcode{runtime_error}!constructor}%
371371
\begin{itemdecl}
372372
runtime_error(const char* what_arg);
373373
\end{itemdecl}
@@ -402,7 +402,7 @@
402402
defines the type of objects thrown as exceptions to report range errors
403403
in internal computations.
404404

405-
\indexlibrary{\idxcode{range_error}!\tcode{range_error}}%
405+
\indexlibrary{\idxcode{range_error}!constructor}%
406406
\begin{itemdecl}
407407
range_error(const string& what_arg);
408408
\end{itemdecl}
@@ -418,7 +418,7 @@
418418
\tcode{strcmp(what(), what_arg.c_str()) == 0}.
419419
\end{itemdescr}
420420

421-
\indexlibrary{\idxcode{range_error}!\tcode{range_error}}%
421+
\indexlibrary{\idxcode{range_error}!constructor}%
422422
\begin{itemdecl}
423423
range_error(const char* what_arg);
424424
\end{itemdecl}
@@ -452,7 +452,7 @@
452452
\tcode{overflow_error}
453453
defines the type of objects thrown as exceptions to report an arithmetic overflow error.
454454

455-
\indexlibrary{\idxcode{overflow_error}!\tcode{overflow_error}}%
455+
\indexlibrary{\idxcode{overflow_error}!constructor}%
456456
\begin{itemdecl}
457457
overflow_error(const string& what_arg);
458458
\end{itemdecl}
@@ -468,7 +468,7 @@
468468
\tcode{strcmp(what(), what_arg.c_str()) == 0}.
469469
\end{itemdescr}
470470

471-
\indexlibrary{\idxcode{overflow_error}!\tcode{overflow_error}}%
471+
\indexlibrary{\idxcode{overflow_error}!constructor}%
472472
\begin{itemdecl}
473473
overflow_error(const char* what_arg);
474474
\end{itemdecl}
@@ -502,7 +502,7 @@
502502
\tcode{underflow_error}
503503
defines the type of objects thrown as exceptions to report an arithmetic underflow error.
504504

505-
\indexlibrary{\idxcode{underflow_error}!\tcode{underflow_error}}%
505+
\indexlibrary{\idxcode{underflow_error}!constructor}%
506506
\begin{itemdecl}
507507
underflow_error(const string& what_arg);
508508
\end{itemdecl}
@@ -518,7 +518,7 @@
518518
\tcode{strcmp(what(), what_arg.c_str()) == 0}.
519519
\end{itemdescr}
520520

521-
\indexlibrary{\idxcode{underflow_error}!\tcode{underflow_error}}%
521+
\indexlibrary{\idxcode{underflow_error}!constructor}%
522522
\begin{itemdecl}
523523
underflow_error(const char* what_arg);
524524
\end{itemdecl}
@@ -1126,8 +1126,7 @@
11261126

11271127
\rSec3[syserr.errcode.constructors]{Class \tcode{error_code} constructors}
11281128

1129-
\indexlibrary{\idxcode{error_code}!\idxcode{error_code}}
1130-
\indexlibrary{\idxcode{error_code}!\idxcode{error_code}}
1129+
\indexlibrary{\idxcode{error_code}!constructor}
11311130
\begin{itemdecl}
11321131
error_code() noexcept;
11331132
\end{itemdecl}
@@ -1140,8 +1139,7 @@
11401139
\postconditions \tcode{val_ == 0} and \tcode{cat_ == \&system_category()}.
11411140
\end{itemdescr}
11421141

1143-
\indexlibrary{\idxcode{error_code}!\idxcode{error_code}}
1144-
\indexlibrary{\idxcode{error_code}!\idxcode{error_code}}
1142+
\indexlibrary{\idxcode{error_code}!constructor}
11451143
\begin{itemdecl}
11461144
error_code(int val, const error_category& cat) noexcept;
11471145
\end{itemdecl}
@@ -1154,8 +1152,7 @@
11541152
\postconditions \tcode{val_ == val} and \tcode{cat_ == \&cat}.
11551153
\end{itemdescr}
11561154

1157-
\indexlibrary{\idxcode{error_code}!\idxcode{error_code}}
1158-
\indexlibrary{\idxcode{error_code}!\idxcode{error_code}}
1155+
\indexlibrary{\idxcode{error_code}!constructor}
11591156
\begin{itemdecl}
11601157
template <class ErrorCodeEnum>
11611158
error_code(ErrorCodeEnum e) noexcept;
@@ -1631,8 +1628,7 @@
16311628

16321629
\rSec3[syserr.syserr.members]{Class \tcode{system_error} members}
16331630

1634-
\indexlibrary{\idxcode{system_error}!\idxcode{system_error}}
1635-
\indexlibrary{\idxcode{system_error}!\idxcode{system_error}}
1631+
\indexlibrary{\idxcode{system_error}!constructor}
16361632
\begin{itemdecl}
16371633
system_error(error_code ec, const string& what_arg);
16381634
\end{itemdecl}
@@ -1647,8 +1643,7 @@
16471643
\tcode{string(what()).find(what_arg) != string::npos}.
16481644
\end{itemdescr}
16491645

1650-
\indexlibrary{\idxcode{system_error}!\idxcode{system_error}}
1651-
\indexlibrary{\idxcode{system_error}!\idxcode{system_error}}
1646+
\indexlibrary{\idxcode{system_error}!constructor}
16521647
\begin{itemdecl}
16531648
system_error(error_code ec, const char* what_arg);
16541649
\end{itemdecl}
@@ -1663,8 +1658,7 @@
16631658
\tcode{string(what()).find(what_arg) != string::npos}.
16641659
\end{itemdescr}
16651660

1666-
\indexlibrary{\idxcode{system_error}!\idxcode{system_error}}
1667-
\indexlibrary{\idxcode{system_error}!\idxcode{system_error}}
1661+
\indexlibrary{\idxcode{system_error}!constructor}
16681662
\begin{itemdecl}
16691663
system_error(error_code ec);
16701664
\end{itemdecl}
@@ -1677,8 +1671,7 @@
16771671
\postconditions \tcode{code() == ec}.
16781672
\end{itemdescr}
16791673

1680-
\indexlibrary{\idxcode{system_error}!\idxcode{system_error}}
1681-
\indexlibrary{\idxcode{system_error}!\idxcode{system_error}}
1674+
\indexlibrary{\idxcode{system_error}!constructor}
16821675
\begin{itemdecl}
16831676
system_error(int ev, const error_category& ecat,
16841677
const string& what_arg);
@@ -1694,8 +1687,7 @@
16941687
\tcode{string(what()).find(what_arg) != string::npos}.
16951688
\end{itemdescr}
16961689

1697-
\indexlibrary{\idxcode{system_error}!\idxcode{system_error}}
1698-
\indexlibrary{\idxcode{system_error}!\idxcode{system_error}}
1690+
\indexlibrary{\idxcode{system_error}!constructor}
16991691
\begin{itemdecl}
17001692
system_error(int ev, const error_category& ecat,
17011693
const char* what_arg);
@@ -1711,8 +1703,7 @@
17111703
\tcode{string(what()).find(what_arg) != string::npos}.
17121704
\end{itemdescr}
17131705

1714-
\indexlibrary{\idxcode{system_error}!\idxcode{system_error}}
1715-
\indexlibrary{\idxcode{system_error}!\idxcode{system_error}}
1706+
\indexlibrary{\idxcode{system_error}!constructor}
17161707
\begin{itemdecl}
17171708
system_error(int ev, const error_category& ecat);
17181709
\end{itemdecl}

source/future.tex

+7-6
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231

232232
\rSec3[depr.strstreambuf.cons]{\tcode{strstreambuf} constructors}
233233

234-
\indexlibrary{\idxcode{strstreambuf}!\tcode{strstreambuf}}%
234+
\indexlibrary{\idxcode{strstreambuf}!constructor}%
235235
\begin{itemdecl}
236236
explicit strstreambuf(streamsize alsize_arg = 0);
237237
\end{itemdecl}
@@ -255,7 +255,7 @@
255255
\tcode{pfree} & a null pointer \\
256256
\end{libtab2}
257257

258-
\indexlibrary{\idxcode{strstreambuf}}%
258+
\indexlibrary{\idxcode{strstreambuf}!constructor}%
259259
\begin{itemdecl}
260260
strstreambuf(void* (*palloc_arg)(size_t), void (*pfree_arg)(void*));
261261
\end{itemdecl}
@@ -281,6 +281,7 @@
281281
\end{itemdescr}
282282

283283
\indextext{unspecified}%
284+
\indexlibrary{\idxcode{strstreambuf}!constructor}%
284285
\begin{itemdecl}
285286
strstreambuf(char* gnext_arg, streamsize n, char* pbeg_arg = 0);
286287
strstreambuf(signed char* gnext_arg, streamsize n,
@@ -786,7 +787,7 @@
786787

787788
\rSec3[depr.istrstream.cons]{\tcode{istrstream} constructors}
788789

789-
\indexlibrary{\idxcode{istrstream}!\idxcode{istrstream}}%
790+
\indexlibrary{\idxcode{istrstream}!constructor}%
790791
\begin{itemdecl}
791792
explicit istrstream(const char* s);
792793
explicit istrstream(char* s);
@@ -885,7 +886,7 @@
885886

886887
\rSec3[depr.ostrstream.cons]{\tcode{ostrstream} constructors}
887888

888-
\indexlibrary{\idxcode{ostrstream}!\idxcode{ostrstream}}%
889+
\indexlibrary{\idxcode{ostrstream}!constructor}%
889890
\begin{itemdecl}
890891
ostrstream();
891892
\end{itemdecl}
@@ -1036,7 +1037,7 @@
10361037

10371038
\rSec3[depr.strstream.cons]{\tcode{strstream} constructors}
10381039

1039-
\indexlibrary{\idxcode{strstream}!\idxcode{strstream}}%
1040+
\indexlibrary{\idxcode{strstream}!constructor}%
10401041
\begin{itemdecl}
10411042
strstream();
10421043
\end{itemdecl}
@@ -1050,7 +1051,7 @@
10501051
\tcode{iostream(\&sb)}.
10511052
\end{itemdescr}
10521053

1053-
\indexlibrary{\idxcode{strstream}!\idxcode{strstream}}%
1054+
\indexlibrary{\idxcode{strstream}!constructor}%
10541055
\begin{itemdecl}
10551056
strstream(char* s, int n,
10561057
ios_base::openmode mode = ios_base::in|ios_base::out);

0 commit comments

Comments
 (0)