Skip to content

Commit 2fe6255

Browse files
committed
Fix all hanging paragraphs by adding "General" sections.
Fixes ISO/CS 018 (C++20 DIS).
1 parent 8cbff23 commit 2fe6255

30 files changed

+492
-0
lines changed

source/algorithms.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5958,6 +5958,8 @@
59585958

59595959
\rSec1[alg.sorting]{Sorting and related operations}
59605960

5961+
\rSec2[alg.sorting.general]{General}
5962+
59615963
\pnum
59625964
The operations in~\ref{alg.sorting} defined directly in namespace \tcode{std}
59635965
have two versions:
@@ -6567,6 +6569,8 @@
65676569

65686570
\rSec2[alg.binary.search]{Binary search}
65696571

6572+
\rSec3[alg.binary.search.general]{General}
6573+
65706574
\pnum
65716575
All of the algorithms in this subclause are versions of binary search and
65726576
assume that the sequence being searched
@@ -7272,6 +7276,8 @@
72727276

72737277
\rSec2[alg.set.operations]{Set operations on sorted structures}
72747278

7279+
\rSec3[alg.set.operations.general]{General}
7280+
72757281
\pnum
72767282
This subclause defines all the basic set operations on sorted structures.
72777283
They also work with \tcode{multiset}s\iref{multiset}
@@ -7730,6 +7736,8 @@
77307736

77317737
\rSec2[alg.heap.operations]{Heap operations}
77327738

7739+
\rSec3[alg.heap.operations.general]{General}
7740+
77337741
\pnum
77347742
A random access range \range{a}{b} is a
77357743
\defnx{heap with respect to \tcode{comp} and \tcode{proj}}
@@ -8995,6 +9003,8 @@
89959003

89969004
\rSec1[numeric.ops]{Generalized numeric operations}
89979005

9006+
\rSec2[numeric.ops.general]{General}
9007+
89989008
\pnum
89999009
\begin{note}
90009010
The use of closed ranges as well as semi-open ranges
@@ -10093,6 +10103,8 @@
1009310103

1009410104
\rSec1[specialized.algorithms]{Specialized \tcode{<memory>} algorithms}
1009510105

10106+
\rSec2[specialized.algorithms.general]{General}
10107+
1009610108
\pnum
1009710109
The contents specified in this subclause~\ref{specialized.algorithms}
1009810110
are declared in the header \libheaderref{memory}.

source/atomics.tex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,8 @@
696696

697697
\rSec1[atomics.ref.generic]{Class template \tcode{atomic_ref}}
698698

699+
\rSec2[atomics.ref.generic.general]{General}
700+
699701
\indexlibraryglobal{atomic_ref}%
700702
\indexlibrarymember{value_type}{atomic_ref}%
701703
\begin{codeblock}
@@ -1533,6 +1535,8 @@
15331535

15341536
\rSec1[atomics.types.generic]{Class template \tcode{atomic}}
15351537

1538+
\rSec2[atomics.types.generic.general]{General}
1539+
15361540
\indexlibraryglobal{atomic}%
15371541
\indexlibrarymember{value_type}{atomic}%
15381542
\begin{codeblock}
@@ -2714,6 +2718,8 @@
27142718
\indextext{atomic!smart pointers|(}%
27152719
\rSec2[util.smartptr.atomic]{Partial specializations for smart pointers}
27162720

2721+
\rSec3[util.smartptr.atomic.general]{General}
2722+
27172723
\pnum
27182724
The library provides partial specializations of the \tcode{atomic} template
27192725
for shared-ownership smart pointers\iref{smartptr}.

source/basic.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,8 @@
13761376
\indextext{scope|)}
13771377

13781378
\rSec1[basic.lookup]{Name lookup}%
1379+
1380+
\rSec2[basic.lookup.general]{General}%
13791381
\indextext{scope!name lookup and|(}%
13801382
\indextext{lookup!name|(}%
13811383

@@ -1994,6 +1996,8 @@
19941996

19951997
\rSec2[basic.lookup.qual]{Qualified name lookup}
19961998

1999+
\rSec3[basic.lookup.qual.general]{General}
2000+
19972001
\pnum
19982002
\indextext{lookup!qualified name|(}%
19992003
\indextext{name!qualified}%
@@ -3732,6 +3736,8 @@
37323736

37333737
\rSec2[basic.stc]{Storage duration}
37343738

3739+
\rSec3[basic.stc.general]{General}
3740+
37353741
\pnum
37363742
\indextext{storage duration|(}%
37373743
The \defn{storage duration} is the property of an object that defines the minimum
@@ -3843,6 +3849,8 @@
38433849
specified in~\ref{class.copy.elision}.
38443850

38453851
\rSec3[basic.stc.dynamic]{Dynamic storage duration}%
3852+
3853+
\rSec4[basic.stc.dynamic.general]{General}%
38463854
\indextext{storage duration!dynamic|(}
38473855

38483856
\pnum
@@ -4653,6 +4661,8 @@
46534661
\end{example}
46544662

46554663
\rSec1[basic.types]{Types}%
4664+
4665+
\rSec2[basic.types.general]{General}%
46564666
\indextext{type|(}
46574667

46584668
\pnum
@@ -5758,6 +5768,8 @@
57585768

57595769
\rSec2[intro.multithread]{Multi-threaded executions and data races}
57605770

5771+
\rSec3[intro.multithread.general]{General}
5772+
57615773
\pnum
57625774
\indextext{threads!multiple|(}%
57635775
\indextext{atomic!operation|(}%

source/classes.tex

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@
437437
if its \grammarterm{template-name} names a class template.
438438

439439
\rSec1[class.mem]{Class members}%
440+
441+
\rSec2[class.mem.general]{General}%
440442
\indextext{declaration!member}%
441443
\indextext{data member|see{member}}
442444

@@ -947,6 +949,8 @@
947949
\end{note}
948950

949951
\rSec2[class.mfct.non-static]{Non-static member functions}%
952+
953+
\rSec3[class.mfct.non-static.general]{General}%
950954
\indextext{member function!non-static}
951955

952956
\pnum
@@ -1227,6 +1231,8 @@
12271231
would be a constexpr function.
12281232

12291233
\rSec2[class.ctor]{Constructors}%
1234+
1235+
\rSec3[class.ctor.general]{General}%
12301236
\indextext{constructor}%
12311237
\indextext{special member function|see{constructor}}%
12321238

@@ -2460,6 +2466,8 @@
24602466

24612467
\rSec2[class.conv]{Conversions}
24622468

2469+
\rSec3[class.conv.general]{General}
2470+
24632471
\pnum
24642472
\indextext{conversion!class}%
24652473
\indextext{constructor, conversion by|see{conversion, user-defined}}%
@@ -2731,6 +2739,8 @@
27312739
\end{example}
27322740

27332741
\rSec2[class.static]{Static members}%
2742+
2743+
\rSec3[class.static.general]{General}%
27342744
\indextext{member!static}%
27352745

27362746
\pnum
@@ -3104,6 +3114,8 @@
31043114
\indextext{class|)}
31053115

31063116
\rSec1[class.union]{Unions}%
3117+
3118+
\rSec2[class.union.general]{General}%
31073119
\indextext{\idxcode{union}}
31083120

31093121
\pnum
@@ -3429,6 +3441,8 @@
34293441
\end{note}
34303442

34313443
\rSec1[class.derived]{Derived classes}%
3444+
3445+
\rSec2[class.derived.general]{General}%
34323446
\indextext{derived class|(}
34333447

34343448
\indextext{virtual base class|see{base class, virtual}}
@@ -4477,6 +4491,8 @@
44774491
\end{example}
44784492

44794493
\rSec1[class.access]{Member access control}%
4494+
4495+
\rSec2[class.access.general]{General}%
44804496
\indextext{access control|(}
44814497

44824498
\indextext{protection|see{access control}}
@@ -5459,6 +5475,8 @@
54595475
\indextext{access control|)}
54605476

54615477
\rSec1[class.init]{Initialization}%
5478+
5479+
\rSec2[class.init.general]{General}%
54625480
\indextext{initialization!class object|(}%
54635481
\indextext{initialization!default constructor and}%
54645482
\indextext{initialization!constructor and}

source/compatibility.tex

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
\rSec1[diff.cpp17]{\Cpp{} and ISO \CppXVII{}}
55

6+
\rSec2[diff.cpp17.general]{General}
7+
68
\pnum
79
\indextext{summary!compatibility with ISO \CppXVII{}}%
810
This subclause lists the differences between \Cpp{} and
@@ -702,6 +704,8 @@
702704

703705
\rSec1[diff.cpp14]{\Cpp{} and ISO \CppXIV{}}
704706

707+
\rSec2[diff.cpp14.general]{General}
708+
705709
\pnum
706710
\indextext{summary!compatibility with ISO \CppXIV{}}%
707711
This subclause lists the differences between \Cpp{} and
@@ -1059,6 +1063,8 @@
10591063

10601064
\rSec1[diff.cpp11]{\Cpp{} and ISO \CppXI{}}
10611065

1066+
\rSec2[diff.cpp11.general]{General}
1067+
10621068
\pnum
10631069
\indextext{summary!compatibility with ISO \CppXI{}}%
10641070
This subclause lists the differences between \Cpp{} and
@@ -1213,6 +1219,8 @@
12131219

12141220
\rSec1[diff.cpp03]{\Cpp{} and ISO \CppIII{}}
12151221

1222+
\rSec2[diff.cpp03.general]{General}
1223+
12161224
\pnum
12171225
\indextext{summary!compatibility with ISO \CppIII{}}%
12181226
This subclause lists the differences between \Cpp{} and
@@ -1753,6 +1761,8 @@
17531761

17541762
\rSec1[diff.iso]{\Cpp{} and ISO C}
17551763

1764+
\rSec2[diff.iso.general]{General}
1765+
17561766
\pnum
17571767
\indextext{summary!compatibility with ISO C}%
17581768
This subclause lists the differences between \Cpp{} and ISO C,
@@ -2630,6 +2640,8 @@
26302640

26312641
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
26322642
\rSec1[diff.library]{C standard library}
2643+
2644+
\rSec2[diff.library.general]{General}
26332645
\indextext{library!C standard}%
26342646

26352647
\pnum
@@ -2782,6 +2794,8 @@
27822794

27832795
\rSec2[diff.mods.to.behavior]{Modifications to behavior}
27842796

2797+
\rSec3[diff.mods.to.behavior.general]{General}
2798+
27852799
\pnum
27862800
Header \libheaderref{cstdlib}:
27872801
The following functions have different behavior:

source/containers.tex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,6 +1528,8 @@
15281528

15291529
\rSec2[associative.reqmts]{Associative containers}
15301530

1531+
\rSec3[associative.reqmts.general]{General}
1532+
15311533
\pnum
15321534
Associative containers provide fast retrieval of data based on keys.
15331535
The library provides four basic kinds of associative containers:
@@ -2182,6 +2184,8 @@
21822184
\indextext{hash tables|see{unordered associative containers}}
21832185
\rSec2[unord.req]{Unordered associative containers}
21842186

2187+
\rSec3[unord.req.general]{General}
2188+
21852189
\pnum
21862190
\indextext{unordered associative containers!complexity}%
21872191
Unordered associative containers provide an ability for fast retrieval
@@ -10326,6 +10330,8 @@
1032610330

1032710331
\rSec2[stack]{Class template \tcode{stack}}
1032810332

10333+
\rSec3[stack.general]{General}
10334+
1032910335
\pnum
1033010336
\indexlibraryglobal{stack}%
1033110337
Any sequence container supporting operations

source/declarations.tex

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@
244244
\end{note}
245245

246246
\rSec1[dcl.spec]{Specifiers}%
247+
248+
\rSec2[dcl.spec.general]{General}%
247249
\indextext{specifier|(}
248250

249251
\pnum
@@ -1113,6 +1115,8 @@
11131115
\end{note}
11141116

11151117
\rSec2[dcl.type]{Type specifiers}%
1118+
1119+
\rSec3[dcl.type.general]{General}%
11161120
\indextext{specifier!type|see{type specifier}}
11171121

11181122
\pnum
@@ -1658,6 +1662,8 @@
16581662
\end{example}
16591663

16601664
\rSec3[dcl.spec.auto]{Placeholder type specifiers}%
1665+
1666+
\rSec4[dcl.spec.auto.general]{General}%
16611667
\indextext{type specifier!\idxcode{auto}}
16621668
\indextext{type specifier!\idxcode{decltype(auto)}}%
16631669

@@ -2084,6 +2090,8 @@
20842090
\indextext{specifier|)}%
20852091

20862092
\rSec1[dcl.decl]{Declarators}%
2093+
2094+
\rSec2[dcl.decl.general]{General}%
20872095
\indextext{declarator|(}
20882096

20892097
\indextext{initialization!class object|seealso{constructor}}%
@@ -2469,6 +2477,8 @@
24692477
\end{example}
24702478

24712479
\rSec2[dcl.meaning]{Meaning of declarators}%
2480+
2481+
\rSec3[dcl.meaning.general]{General}%
24722482
\indextext{declarator!meaning of|(}
24732483

24742484
\pnum
@@ -4040,6 +4050,8 @@
40404050
\indextext{declarator!meaning of|)}
40414051

40424052
\rSec1[dcl.init]{Initializers}%
4053+
4054+
\rSec2[dcl.init.general]{General}%
40434055
\indextext{initialization|(}
40444056

40454057
\pnum
@@ -6997,6 +7009,8 @@
69977009
\end{note}
69987010

69997011
\rSec1[basic.namespace]{Namespaces}%
7012+
7013+
\rSec2[basic.namespace.general]{General}%
70007014
\indextext{namespaces|(}
70017015

70027016
\pnum
@@ -7030,6 +7044,8 @@
70307044
see~\ref{basic.scope.namespace}.
70317045

70327046
\rSec2[namespace.def]{Namespace definition}%
7047+
7048+
\rSec3[namespace.def.general]{General}%
70337049
\indextext{definition!namespace}%
70347050
\indextext{namespace!definition}
70357051

0 commit comments

Comments
 (0)