Skip to content

Commit 2850139

Browse files
committed
Fix all hanging paragraphs by adding "General" sections.
Fixes ISO/CS 018 (C++20 DIS).
1 parent 33f4041 commit 2850139

30 files changed

Lines changed: 492 additions & 0 deletions

source/algorithms.tex

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

59505950
\rSec1[alg.sorting]{Sorting and related operations}
59515951

5952+
\rSec2[alg.sorting.general]{General}
5953+
59525954
\pnum
59535955
The operations in~\ref{alg.sorting} defined directly in namespace \tcode{std}
59545956
have two versions:
@@ -6557,6 +6559,8 @@
65576559

65586560
\rSec2[alg.binary.search]{Binary search}
65596561

6562+
\rSec3[alg.binary.search.general]{General}
6563+
65606564
\pnum
65616565
All of the algorithms in this subclause are versions of binary search and
65626566
assume that the sequence being searched
@@ -7262,6 +7266,8 @@
72627266

72637267
\rSec2[alg.set.operations]{Set operations on sorted structures}
72647268

7269+
\rSec3[alg.set.operations.general]{General}
7270+
72657271
\pnum
72667272
This subclause defines all the basic set operations on sorted structures.
72677273
They also work with \tcode{multiset}s\iref{multiset}
@@ -7720,6 +7726,8 @@
77207726

77217727
\rSec2[alg.heap.operations]{Heap operations}
77227728

7729+
\rSec3[alg.heap.operations.general]{General}
7730+
77237731
\pnum
77247732
A random access range \range{a}{b} is a
77257733
\defnx{heap with respect to \tcode{comp} and \tcode{proj}}
@@ -8985,6 +8993,8 @@
89858993

89868994
\rSec1[numeric.ops]{Generalized numeric operations}
89878995

8996+
\rSec2[numeric.ops.general]{General}
8997+
89888998
\pnum
89898999
\begin{note}
89909000
The use of closed ranges as well as semi-open ranges
@@ -10083,6 +10093,8 @@
1008310093

1008410094
\rSec1[specialized.algorithms]{Specialized \tcode{<memory>} algorithms}
1008510095

10096+
\rSec2[specialized.algorithms.general]{General}
10097+
1008610098
\pnum
1008710099
The contents specified in this subclause~\ref{specialized.algorithms}
1008810100
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}
@@ -1534,6 +1536,8 @@
15341536

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

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

2722+
\rSec3[util.smartptr.atomic.general]{General}
2723+
27182724
\pnum
27192725
The library provides partial specializations of the \tcode{atomic} template
27202726
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
@@ -1226,6 +1230,8 @@
12261230
would be a constexpr function.
12271231

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

@@ -2459,6 +2465,8 @@
24592465

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

2468+
\rSec3[class.conv.general]{General}
2469+
24622470
\pnum
24632471
\indextext{conversion!class}%
24642472
\indextext{constructor, conversion by|see{conversion, user-defined}}%
@@ -2730,6 +2738,8 @@
27302738
\end{example}
27312739

27322740
\rSec2[class.static]{Static members}%
2741+
2742+
\rSec3[class.static.general]{General}%
27332743
\indextext{member!static}%
27342744

27352745
\pnum
@@ -3103,6 +3113,8 @@
31033113
\indextext{class|)}
31043114

31053115
\rSec1[class.union]{Unions}%
3116+
3117+
\rSec2[class.union.general]{General}%
31063118
\indextext{\idxcode{union}}
31073119

31083120
\pnum
@@ -3428,6 +3440,8 @@
34283440
\end{note}
34293441

34303442
\rSec1[class.derived]{Derived classes}%
3443+
3444+
\rSec2[class.derived.general]{General}%
34313445
\indextext{derived class|(}
34323446

34333447
\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
@@ -13,6 +13,8 @@
1313

1414
\rSec1[diff.cpp17]{\Cpp{} and ISO \CppXVII{}}
1515

16+
\rSec2[diff.cpp17.general]{General}
17+
1618
\pnum
1719
\indextext{summary!compatibility with ISO \CppXVII{}}%
1820
This subclause lists the differences between \Cpp{} and
@@ -712,6 +714,8 @@
712714

713715
\rSec1[diff.cpp14]{\Cpp{} and ISO \CppXIV{}}
714716

717+
\rSec2[diff.cpp14.general]{General}
718+
715719
\pnum
716720
\indextext{summary!compatibility with ISO \CppXIV{}}%
717721
This subclause lists the differences between \Cpp{} and
@@ -1069,6 +1073,8 @@
10691073

10701074
\rSec1[diff.cpp11]{\Cpp{} and ISO \CppXI{}}
10711075

1076+
\rSec2[diff.cpp11.general]{General}
1077+
10721078
\pnum
10731079
\indextext{summary!compatibility with ISO \CppXI{}}%
10741080
This subclause lists the differences between \Cpp{} and
@@ -1223,6 +1229,8 @@
12231229

12241230
\rSec1[diff.cpp03]{\Cpp{} and ISO \CppIII{}}
12251231

1232+
\rSec2[diff.cpp03.general]{General}
1233+
12261234
\pnum
12271235
\indextext{summary!compatibility with ISO \CppIII{}}%
12281236
This subclause lists the differences between \Cpp{} and
@@ -1763,6 +1771,8 @@
17631771

17641772
\rSec1[diff.iso]{\Cpp{} and ISO C}
17651773

1774+
\rSec2[diff.iso.general]{General}
1775+
17661776
\pnum
17671777
\indextext{summary!compatibility with ISO C}%
17681778
This subclause lists the differences between \Cpp{} and ISO C,
@@ -2640,6 +2650,8 @@
26402650

26412651
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
26422652
\rSec1[diff.library]{C standard library}
2653+
2654+
\rSec2[diff.library.general]{General}
26432655
\indextext{library!C standard}%
26442656

26452657
\pnum
@@ -2794,6 +2806,8 @@
27942806

27952807
\rSec2[diff.mods.to.behavior]{Modifications to behavior}
27962808

2809+
\rSec3[diff.mods.to.behavior.general]{General}
2810+
27972811
\pnum
27982812
Header \libheaderref{cstdlib}:
27992813
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{associative containers!unordered|see{unordered associative containers}}
21832185
\indextext{hash tables|see{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
@@ -1116,6 +1118,8 @@
11161118
\end{note}
11171119

11181120
\rSec2[dcl.type]{Type specifiers}%
1121+
1122+
\rSec3[dcl.type.general]{General}%
11191123
\indextext{specifier!type|see{type specifier}}
11201124

11211125
\pnum
@@ -1661,6 +1665,8 @@
16611665
\end{example}
16621666

16631667
\rSec3[dcl.spec.auto]{Placeholder type specifiers}%
1668+
1669+
\rSec4[dcl.spec.auto.general]{General}%
16641670
\indextext{type specifier!\idxcode{auto}}
16651671
\indextext{type specifier!\idxcode{decltype(auto)}}%
16661672

@@ -2087,6 +2093,8 @@
20872093
\indextext{specifier|)}%
20882094

20892095
\rSec1[dcl.decl]{Declarators}%
2096+
2097+
\rSec2[dcl.decl.general]{General}%
20902098
\indextext{declarator|(}
20912099

20922100
\indextext{initialization!class object|seealso{constructor}}%
@@ -2472,6 +2480,8 @@
24722480
\end{example}
24732481

24742482
\rSec2[dcl.meaning]{Meaning of declarators}%
2483+
2484+
\rSec3[dcl.meaning.general]{General}%
24752485
\indextext{declarator!meaning of|(}
24762486

24772487
\pnum
@@ -4043,6 +4053,8 @@
40434053
\indextext{declarator!meaning of|)}
40444054

40454055
\rSec1[dcl.init]{Initializers}%
4056+
4057+
\rSec2[dcl.init.general]{General}%
40464058
\indextext{initialization|(}
40474059

40484060
\pnum
@@ -7001,6 +7013,8 @@
70017013
\end{note}
70027014

70037015
\rSec1[basic.namespace]{Namespaces}%
7016+
7017+
\rSec2[basic.namespace.general]{General}%
70047018
\indextext{namespaces|(}
70057019

70067020
\pnum
@@ -7034,6 +7048,8 @@
70347048
see~\ref{basic.scope.namespace}.
70357049

70367050
\rSec2[namespace.def]{Namespace definition}%
7051+
7052+
\rSec3[namespace.def.general]{General}%
70377053
\indextext{definition!namespace}%
70387054
\indextext{namespace!definition}
70397055

0 commit comments

Comments
 (0)