Skip to content

Commit 23b02f5

Browse files
jensmaurertkoeppe
authored andcommitted
[lib] Add main index entries for all headers. (#1197)
Fixes #940.
1 parent 1c53bd6 commit 23b02f5

File tree

14 files changed

+157
-18
lines changed

14 files changed

+157
-18
lines changed

source/algorithms.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
\end{libsumtab}
2424

2525
\synopsis{Header \tcode{<algorithm>} synopsis}
26+
\indextext{\idxhdr{algorithm}}%
2627
\indexlibrary{\idxhdr{algorithm}}%
2728

2829
\begin{codeblock}
@@ -5389,6 +5390,7 @@
53895390

53905391
\pnum
53915392
\indextext{\idxhdr{cstdlib}}%
5393+
\indexlibrary{\idxhdr{cstdlib}}%
53925394
\begin{note}
53935395
The header \tcode{<cstdlib>}~(\ref{cstdlib.syn})
53945396
declares the functions described in this subclause.

source/atomics.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
\rSec1[atomics.syn]{Header \tcode{<atomic>} synopsis}
3030

31+
\indextext{\idxhdr{atomic}}%
3132
\indexlibrary{\idxhdr{atomic}}%
3233
\begin{codeblock}
3334
namespace std {

source/containers.tex

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2875,6 +2875,7 @@
28752875

28762876
\rSec2[array.syn]{Header \tcode{<array>} synopsis}
28772877

2878+
\indextext{\idxhdr{array}}%
28782879
\indexlibrary{\idxhdr{array}}%
28792880
\begin{codeblock}
28802881
#include <initializer_list>
@@ -2916,7 +2917,8 @@
29162917

29172918
\rSec2[deque.syn]{Header \tcode{<deque>} synopsis}
29182919

2919-
\indexlibrary{\idxhdr{deque}}
2920+
\indextext{\idxhdr{deque}}%
2921+
\indexlibrary{\idxhdr{deque}}%
29202922

29212923
\begin{codeblock}
29222924
#include <initializer_list>
@@ -2949,7 +2951,8 @@
29492951

29502952
\rSec2[forward_list.syn]{Header \tcode{<forward_list>} synopsis}
29512953

2952-
\indexlibrary{\idxhdr{forward_list}}
2954+
\indextext{\idxhdr{forward_list}}%
2955+
\indexlibrary{\idxhdr{forward_list}}%
29532956

29542957
\begin{codeblock}
29552958
#include <initializer_list>
@@ -2982,7 +2985,8 @@
29822985

29832986
\rSec2[list.syn]{Header \tcode{<list>} synopsis}
29842987

2985-
\indexlibrary{\idxhdr{list}}
2988+
\indextext{\idxhdr{list}}%
2989+
\indexlibrary{\idxhdr{list}}%
29862990

29872991
\begin{codeblock}
29882992
#include <initializer_list>
@@ -3015,7 +3019,8 @@
30153019

30163020
\rSec2[vector.syn]{Header \tcode{<vector>} synopsis}
30173021

3018-
\indexlibrary{\idxhdr{vector}}
3022+
\indextext{\idxhdr{vector}}%
3023+
\indexlibrary{\idxhdr{vector}}%
30193024

30203025
\begin{codeblock}
30213026
#include <initializer_list>
@@ -5768,6 +5773,7 @@
57685773

57695774
\rSec2[associative.map.syn]{Header \tcode{<map>} synopsis}
57705775

5776+
\indextext{\idxhdr{map}}%
57715777
\indexlibrary{\idxhdr{map}}%
57725778
\begin{codeblock}
57735779
#include <initializer_list>
@@ -5840,7 +5846,9 @@
58405846
\end{codeblock}
58415847

58425848
\rSec2[associative.set.syn]{Header \tcode{<set>} synopsis}%
5843-
\indexlibrary{\idxhdr{set}}
5849+
5850+
\indextext{\idxhdr{set}}%
5851+
\indexlibrary{\idxhdr{set}}%
58445852

58455853
\begin{codeblock}
58465854
#include <initializer_list>
@@ -7299,6 +7307,7 @@
72997307
\tcode{unordered_set} and \tcode{unordered_multiset}.
73007308

73017309
\rSec2[unord.map.syn]{Header \tcode{<unordered_map>} synopsis}%
7310+
\indextext{\idxhdr{unordered_map}}%
73027311
\indexlibrary{\idxhdr{unordered_map}}%
73037312
\indexlibrary{\idxcode{unordered_map}}%
73047313
\indexlibrary{\idxcode{unordered_multimap}}%
@@ -7366,6 +7375,7 @@
73667375
\end{codeblock}
73677376

73687377
\rSec2[unord.set.syn]{Header \tcode{<unordered_set>} synopsis}%
7378+
\indextext{\idxhdr{unordered_set}}%
73697379
\indexlibrary{\idxhdr{unordered_set}}%
73707380
\indexlibrary{\idxcode{unordered_set}}%
73717381
\indexlibrary{\idxcode{unordered_multiset}}%
@@ -8793,6 +8803,7 @@
87938803
\tcode{Compare} object (if any).
87948804

87958805
\rSec2[queue.syn]{Header \tcode{<queue>} synopsis}%
8806+
\indextext{\idxhdr{queue}}%
87968807
\indexlibrary{\idxhdr{queue}}
87978808

87988809
\begin{codeblock}
@@ -8826,6 +8837,7 @@
88268837
\end{codeblock}
88278838

88288839
\rSec2[stack.syn]{Header \tcode{<stack>} synopsis}%
8840+
\indextext{\idxhdr{stack}}%
88298841
\indexlibrary{\idxhdr{stack}}
88308842

88318843
\begin{codeblock}

source/diagnostics.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
These exceptions are related by inheritance.
5050

5151
\rSec2[stdexcept.syn]{Header \tcode{<stdexcept>} synopsis}
52+
\indextext{\idxhdr{stdexcept}}%
5253
\indexlibrary{\idxhdr{stdexcept}}%
5354
\indexlibrary{\idxcode{logic_error}}%
5455
\indexlibrary{\idxcode{domain_error}}%
@@ -545,13 +546,15 @@
545546
\rSec2[cassert.syn]{Header \tcode{<cassert>} synopsis}
546547

547548
\indextext{\idxhdr{cassert}}%
549+
\indexlibrary{\idxhdr{cassert}}%
548550
\indexlibrary{\idxcode{assert}}%
549551
\begin{codeblock}
550552
#define assert(E) @\seebelow@
551553
\end{codeblock}
552554

553555
\pnum
554556
\indextext{\idxhdr{assert.h}}%
557+
\indexlibrary{\idxhdr{assert.h}}%
555558
\indextext{static_assert@\tcode{static_assert}!not macro}%
556559
The contents are the same as the C standard library header
557560
\tcode{<assert.h>},
@@ -578,6 +581,7 @@
578581

579582
\pnum
580583
\indextext{\idxhdr{errno.h}}%
584+
\indexlibrary{\idxhdr{errno.h}}%
581585
The contents of the header \tcode{<cerrno>} are the same as the POSIX header
582586
\tcode{<errno.h>}, except that \tcode{errno} shall be defined as a macro.
583587
\begin{note}
@@ -588,6 +592,7 @@
588592
\rSec2[cerrno.syn]{Header \tcode{<cerrno>} synopsis}
589593

590594
\indextext{\idxhdr{cerrno}}%
595+
\indexlibrary{\idxhdr{cerrno}}%
591596
\indexlibrary{\idxcode{errno}}%
592597
\indexlibrary{\idxcode{E2BIG}}%
593598
\indexlibrary{\idxcode{EACCES}}%

source/future.tex

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@
125125
\pnum
126126
\begin{example}
127127
The header
128+
\indextext{\idxhdr{cstdlib}}%
128129
\indexlibrary{\idxhdr{cstdlib}}%
130+
\indextext{\idxhdr{stdlib.h}}%
129131
\indexlibrary{\idxhdr{stdlib.h}}%
130132
\tcode{<cstdlib>} assuredly
131133
provides its declarations and definitions within the namespace
@@ -143,6 +145,7 @@
143145

144146
\pnum
145147
The header
148+
\indextext{\idxhdr{strstream}}%
146149
\indexlibrary{\idxhdr{strstream}}%
147150
\tcode{<strstream>}
148151
defines three types that associate stream buffers with
@@ -363,12 +366,16 @@
363366
is declared in
364367
\tcode{<cstring>}
365368
\indexlibrary{\idxcode{strlen}}%
369+
\indextext{\idxhdr{cstring}}%
366370
\indexlibrary{\idxhdr{cstring}}%
367371
(\ref{cstring.syn}).
368372
The macro
369373
\tcode{INT_MAX}
370374
is defined in
371-
\tcode{<climits>}\indexlibrary{\idxhdr{climits}} (\ref{climits.syn}).}
375+
\tcode{<climits>}
376+
\indextext{\idxhdr{climits}}%
377+
\indexlibrary{\idxhdr{climits}}%
378+
(\ref{climits.syn}).}
372379
\end{itemize}
373380

374381
\pnum
@@ -970,6 +977,7 @@
970977
is declared in
971978
\tcode{<cstring>}
972979
\indexlibrary{\idxcode{strlen}}%
980+
\indextext{\idxhdr{cstring}}%
973981
\indexlibrary{\idxhdr{cstring}}%
974982
(\ref{cstring.syn}).}
975983
\end{itemize}
@@ -1183,6 +1191,7 @@
11831191

11841192
\pnum
11851193
The header
1194+
\indextext{\idxhdr{exception}}%
11861195
\indexlibrary{\idxhdr{exception}}%
11871196
\tcode{<exception>} has the following addition:
11881197

@@ -1575,6 +1584,7 @@
15751584

15761585
\pnum
15771586
The header
1587+
\indextext{\idxhdr{functional}}%
15781588
\indexlibrary{\idxhdr{functional}}%
15791589
\tcode{<functional>} has the following additions:
15801590

@@ -1788,6 +1798,7 @@
17881798

17891799
\pnum
17901800
The header
1801+
\indextext{\idxhdr{memory}}%
17911802
\indexlibrary{\idxhdr{memory}}%
17921803
\tcode{<memory>} has the following addition:
17931804

@@ -1922,6 +1933,7 @@
19221933

19231934
\pnum
19241935
The header
1936+
\indextext{\idxhdr{memory}}%
19251937
\indexlibrary{\idxhdr{memory}}%
19261938
\tcode{<memory>} has the following additions:
19271939

@@ -1993,6 +2005,7 @@
19932005

19942006
\pnum
19952007
The header
2008+
\indextext{\idxhdr{type_traits}}%
19962009
\indexlibrary{\idxhdr{type_traits}}%
19972010
\tcode{<type_traits>} has the following addition:
19982011

@@ -2022,6 +2035,7 @@
20222035

20232036
\pnum
20242037
The header
2038+
\indextext{\idxhdr{iterator}}%
20252039
\indexlibrary{\idxhdr{iterator}}%
20262040
\tcode{<iterator>} has the following addition:
20272041

0 commit comments

Comments
 (0)