forked from cplusplus/fundamentals-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fundamentals-ts.html
14399 lines (9300 loc) · 642 KB
/
fundamentals-ts.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<!-- Sources at https://github.com/cplusplus/fundamentals-ts -->
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><!--[if lte IE 8]><script>document.createElement("nav");document.createElement("section");document.createElement("time");document.createElement("CXX-TITLEPAGE");document.createElement("CXX-DOCNUM");document.createElement("CXX-REVISES");document.createElement("CXX-EDITOR");document.createElement("CXX-EMAIL");document.createElement("CXX-TOC");document.createElement("CXX-CLAUSE");document.createElement("CXX-SECTION");document.createElement("CXX-REF");document.createElement("CXX-FOREIGN-INDEX");document.createElement("CXX-EXAMPLE");document.createElement("CXX-NOTE");document.createElement("CXX-FUNCTION");document.createElement("CXX-SIGNATURE");document.createElement("CXX-REMARKS");document.createElement("CXX-EFFECTS");document.createElement("CXX-TERM");document.createElement("W-BR");document.createElement("CXX-RETURNS");document.createElement("CXX-REQUIRES");document.createElement("CXX-EDNOTE");document.createElement("CXX-POSTCONDITIONS");document.createElement("CXX-RANGE");document.createElement("CXX-THROWS");document.createElement("CXX-COMPLEXITY");document.createElement("CXX-FOOTNOTE");document.createElement("CXX-NOTES");document.createElement("CXX-FIGURE");document.createElement("CXX-GRAMMARTERM");document.createElement("CXX-PUBLISH-BUTTON");</script><![endif]--><style>template {display: none !important;} /* injected by platform.js */</style><style>body {transition: opacity ease-in 0.2s; }
body[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; }
</style><style shim-shadowdom-css="">style { display: none !important; }
cxx-function {
display: block; page-break-inside: avoid;
}
cxx-function:not(:last-child) {
margin-bottom: 3ex;
}
cxx-function > dl {
margin: 0px 0px 0px 2em;
}
cxx-function > pre {
margin: 0px;
}cxx-signature {
padding-left: 2em; display: block; text-indent: -2em;
}
cxx-signature.formatted {
text-indent: 0px;
}cxx-attribute {
display: block; margin-top: 0.5em; margin-bottom: 0.5em;
}
cxx-attribute dt {
float: left; font-style: italic; font-weight: normal; padding-right: 1ex;
}
cxx-attribute dd {
margin-left: 0em;
}
cxx-attribute dd > ul, cxx-attribute dd > ol {
clear: left;
}cxx-requires {
display: block; margin-top: 0.5em; margin-bottom: 0.5em;
}
cxx-requires dt {
float: left; font-style: italic; font-weight: normal; padding-right: 1ex;
}
cxx-requires dd {
margin-left: 0em;
}
cxx-requires dd > ul, cxx-requires dd > ol {
clear: left;
}cxx-preconditions {
display: block; margin-top: 0.5em; margin-bottom: 0.5em;
}
cxx-preconditions dt {
float: left; font-style: italic; font-weight: normal; padding-right: 1ex;
}
cxx-preconditions dd {
margin-left: 0em;
}
cxx-preconditions dd > ul, cxx-preconditions dd > ol {
clear: left;
}cxx-effects {
display: block; margin-top: 0.5em; margin-bottom: 0.5em;
}
cxx-effects dt {
float: left; font-style: italic; font-weight: normal; padding-right: 1ex;
}
cxx-effects dd {
margin-left: 0em;
}
cxx-effects dd > ul, cxx-effects dd > ol {
clear: left;
}cxx-synchronization {
display: block; margin-top: 0.5em; margin-bottom: 0.5em;
}
cxx-synchronization dt {
float: left; font-style: italic; font-weight: normal; padding-right: 1ex;
}
cxx-synchronization dd {
margin-left: 0em;
}
cxx-synchronization dd > ul, cxx-synchronization dd > ol {
clear: left;
}cxx-postconditions {
display: block; margin-top: 0.5em; margin-bottom: 0.5em;
}
cxx-postconditions dt {
float: left; font-style: italic; font-weight: normal; padding-right: 1ex;
}
cxx-postconditions dd {
margin-left: 0em;
}
cxx-postconditions dd > ul, cxx-postconditions dd > ol {
clear: left;
}cxx-returns {
display: block; margin-top: 0.5em; margin-bottom: 0.5em;
}
cxx-returns dt {
float: left; font-style: italic; font-weight: normal; padding-right: 1ex;
}
cxx-returns dd {
margin-left: 0em;
}
cxx-returns dd > ul, cxx-returns dd > ol {
clear: left;
}cxx-throws {
display: block; margin-top: 0.5em; margin-bottom: 0.5em;
}
cxx-throws dt {
float: left; font-style: italic; font-weight: normal; padding-right: 1ex;
}
cxx-throws dd {
margin-left: 0em;
}
cxx-throws dd > ul, cxx-throws dd > ol {
clear: left;
}cxx-complexity {
display: block; margin-top: 0.5em; margin-bottom: 0.5em;
}
cxx-complexity dt {
float: left; font-style: italic; font-weight: normal; padding-right: 1ex;
}
cxx-complexity dd {
margin-left: 0em;
}
cxx-complexity dd > ul, cxx-complexity dd > ol {
clear: left;
}cxx-exception-safety {
display: block; margin-top: 0.5em; margin-bottom: 0.5em;
}
cxx-exception-safety dt {
float: left; font-style: italic; font-weight: normal; padding-right: 1ex;
}
cxx-exception-safety dd {
margin-left: 0em;
}
cxx-exception-safety dd > ul, cxx-exception-safety dd > ol {
clear: left;
}cxx-remarks {
display: block; margin-top: 0.5em; margin-bottom: 0.5em;
}
cxx-remarks dt {
float: left; font-style: italic; font-weight: normal; padding-right: 1ex;
}
cxx-remarks dd {
margin-left: 0em;
}
cxx-remarks dd > ul, cxx-remarks dd > ol {
clear: left;
}cxx-error-conditions {
display: block; margin-top: 0.5em; margin-bottom: 0.5em;
}
cxx-error-conditions dt {
float: left; font-style: italic; font-weight: normal; padding-right: 1ex;
}
cxx-error-conditions dd {
margin-left: 0em;
}
cxx-error-conditions dd > ul, cxx-error-conditions dd > ol {
clear: left;
}cxx-notes {
display: block; margin-top: 0.5em; margin-bottom: 0.5em;
}
cxx-notes dt {
float: left; font-style: italic; font-weight: normal; padding-right: 1ex;
}
cxx-notes dd {
margin-left: 0em;
}
cxx-notes dd > ul, cxx-notes dd > ol {
clear: left;
}cxx-section {
display: block;
}
cxx-section:target {
background-color: inherit;
}
cxx-section:target > section > h1 {
background-color: rgb(255, 238, 221);
}
cxx-section header > h1 {
display: inline; font-size: 100%;
}
cxx-section header {
font-weight: bold; margin-top: 20px; margin-bottom: 20px; page-break-inside: avoid; page-break-after: avoid;
}
cxx-section header::after {
clear: both; display: block; content: " "; height: 0px;
}cxx-clause {
display: block;
}
cxx-clause:target {
background-color: inherit;
}
cxx-clause:target > section > h1 {
background-color: rgb(255, 238, 221);
}
cxx-clause header > h1 {
display: inline; font-size: 100%;
}
cxx-clause header {
font-weight: bold; margin-top: 20px; margin-bottom: 20px; page-break-inside: avoid; page-break-after: avoid;
}
cxx-clause header::after {
clear: both; display: block; content: " "; height: 0px;
}[is=cxx-table] {
margin-left: auto; margin-right: auto; border-collapse: collapse; border: thin solid black;
}
[is=cxx-table] caption {
white-space: nowrap;
}
[is=cxx-table] caption caption {
display: inline;
}
[is=cxx-table] th, [is=cxx-table] td {
border-style: solid none; border-color: black; border-width: thin; padding: 0px 0.25em;
}
[is=cxx-table].column-rules th, [is=cxx-table].column-rules td {
border-left-style: solid; border-right-style: solid;
}
[is=cxx-table] th {
border-bottom: medium double;
}
[is=cxx-table].single-border th {
border-bottom: thin solid;
}
[is=cxx-table].center td {
text-align: center;
}
[is=cxx-table].list td {
border: medium none; vertical-align: top;
}
[is=cxx-table].list ul {
padding-left: 0px; margin: 0px;
}
[is=cxx-table].list ul li::before {
content: "";
}cxx-figure {
margin-left: auto; margin-right: auto;
}
cxx-figure figcaption {
white-space: nowrap; text-align: center;
}
cxx-figure figcaption figcaption {
display: inline;
}[is=cxx-definition-section] dt {
font-weight: bold;
}
[is=cxx-definition-section] dd {
margin-left: 0px;
}cxx-toc {
display: block;
}
cxx-toc nav > ol {
font-weight: bold;
}
cxx-toc ol {
font-weight: normal; padding-left: 0px; margin-left: 0px;
}
cxx-toc li {
list-style-type: none;
}
cxx-toc .marker {
display: inline-block;
}
cxx-toc li .marker {
width: 2em; text-align: left;
}
cxx-toc ol ol {
margin-left: 2em;
}
cxx-toc li li .marker {
width: 3em;
}
cxx-toc ol ol ol {
margin-left: 3em;
}
cxx-toc li li li .marker {
width: 3.5em;
}
cxx-toc ol ol ol ol {
margin-left: 3.5em;
}
cxx-toc li li li li .marker {
width: 4.5em;
}cxx-get-element-by-id {
display: none;
}cxx-foreign-index {
display: none;
}cxx-titlepage, cxx-titlepage .page {
display: block; min-height: 100%;
}
cxx-titlepage .page {
page-break-before: always; page-break-after: always; min-height: 100vh; margin-bottom: 2em;
}
@media print {
cxx-titlepage .page {
height: 8.8in;
}
}
cxx-titlepage .page {
position: relative;
}
cxx-titlepage table td, cxx-titlepage table th {
border: medium none;
}
cxx-titlepagebody.cxx-draft .header, body.cxx-draft cxx-titlepage .header {
position: absolute; right: 0px; top: 0px;
}
cxx-titlepagebody.cxx-draft h1, body.cxx-draft cxx-titlepage h1 {
position: absolute; top: 40%; text-align: center;
}
cxx-titlepagebody.cxx-draft p.warning, body.cxx-draft cxx-titlepage p.warning {
position: absolute; bottom: 5%;
}
cxx-titlepagebody.cxx-pdts .header, body.cxx-pdts cxx-titlepage .header, cxx-titlepagebody.cxx-dts .header, body.cxx-dts cxx-titlepage .header, cxx-titlepagebody.cxx-ts .header, body.cxx-ts cxx-titlepage .header {
position: absolute; right: 0px; top: 0px; text-align: right;
}
cxx-titlepagebody.cxx-pdts .header cxx-docnum, body.cxx-pdts cxx-titlepage .header cxx-docnum, cxx-titlepagebody.cxx-dts .header cxx-docnum, body.cxx-dts cxx-titlepage .header cxx-docnum, cxx-titlepagebody.cxx-ts .header cxx-docnum, body.cxx-ts cxx-titlepage .header cxx-docnum {
font-size: 150%;
}
cxx-titlepagebody.cxx-pdts .header cxx-docnum, body.cxx-pdts cxx-titlepage .header cxx-docnum, cxx-titlepagebody.cxx-dts .header cxx-docnum, body.cxx-dts cxx-titlepage .header cxx-docnum, cxx-titlepagebody.cxx-ts .header cxx-docnum, body.cxx-ts cxx-titlepage .header cxx-docnum {
font-size: 150%;
}
cxx-titlepagebody.cxx-pdts hgroup, body.cxx-pdts cxx-titlepage hgroup, cxx-titlepagebody.cxx-dts hgroup, body.cxx-dts cxx-titlepage hgroup, cxx-titlepagebody.cxx-ts hgroup, body.cxx-ts cxx-titlepage hgroup {
position: absolute; top: 30%;
}
cxx-titlepagebody.cxx-pdts hgroup *, body.cxx-pdts cxx-titlepage hgroup *, cxx-titlepagebody.cxx-dts hgroup *, body.cxx-dts cxx-titlepage hgroup *, cxx-titlepagebody.cxx-ts hgroup *, body.cxx-ts cxx-titlepage hgroup * {
margin: 0px;
}
cxx-titlepagebody.cxx-pdts hgroup h1, body.cxx-pdts cxx-titlepage hgroup h1, cxx-titlepagebody.cxx-dts hgroup h1, body.cxx-dts cxx-titlepage hgroup h1, cxx-titlepagebody.cxx-ts hgroup h1, body.cxx-ts cxx-titlepage hgroup h1 {
font-size: 150%; font-weight: bold;
}
cxx-titlepagebody.cxx-pdts hgroup h2, body.cxx-pdts cxx-titlepage hgroup h2, cxx-titlepagebody.cxx-dts hgroup h2, body.cxx-dts cxx-titlepage hgroup h2, cxx-titlepagebody.cxx-ts hgroup h2, body.cxx-ts cxx-titlepage hgroup h2 {
font-size: 100%; font-weight: normal;
}
cxx-titlepagebody.cxx-pdts .footer, body.cxx-pdts cxx-titlepage .footer, cxx-titlepagebody.cxx-dts .footer, body.cxx-dts cxx-titlepage .footer, cxx-titlepagebody.cxx-ts .footer, body.cxx-ts cxx-titlepage .footer {
position: absolute; left: 0px; bottom: 5%;
}
cxx-titlepagebody.cxx-pdts figure, body.cxx-pdts cxx-titlepage figure, cxx-titlepagebody.cxx-dts figure, body.cxx-dts cxx-titlepage figure, cxx-titlepagebody.cxx-ts figure, body.cxx-ts cxx-titlepage figure {
border: 1px solid rgb(17, 17, 17); padding: 10px; margin-left: auto; margin-right: auto;
}
cxx-titlepagebody.cxx-pdts figcaption, body.cxx-pdts cxx-titlepage figcaption, cxx-titlepagebody.cxx-dts figcaption, body.cxx-dts cxx-titlepage figcaption, cxx-titlepagebody.cxx-ts figcaption, body.cxx-ts cxx-titlepage figcaption {
text-align: center; font-weight: bold;
}
cxx-titlepagebody.cxx-pdts .warning, body.cxx-pdts cxx-titlepage .warning, cxx-titlepagebody.cxx-dts .warning, body.cxx-dts cxx-titlepage .warning, cxx-titlepagebody.cxx-ts .warning, body.cxx-ts cxx-titlepage .warning {
position: absolute; bottom: 20%;
}
cxx-titlepagebody.cxx-pdts .copyright address, body.cxx-pdts cxx-titlepage .copyright address, cxx-titlepagebody.cxx-dts .copyright address, body.cxx-dts cxx-titlepage .copyright address, cxx-titlepagebody.cxx-ts .copyright address, body.cxx-ts cxx-titlepage .copyright address {
font-style: normal; margin-left: 2em;
}
cxx-titlepagebody.cxx-pdts .copyright address a, body.cxx-pdts cxx-titlepage .copyright address a, cxx-titlepagebody.cxx-dts .copyright address a, body.cxx-dts cxx-titlepage .copyright address a, cxx-titlepagebody.cxx-ts .copyright address a, body.cxx-ts cxx-titlepage .copyright address a {
color: inherit; text-decoration: inherit;
}
cxx-titlepage th {
text-align: left; vertical-align: top;
}cxx-foreword {
display: block; min-height: 100%;
}
cxx-foreword {
page-break-before: always; page-break-after: always; min-height: 100vh; margin-bottom: 2em;
}
cxx-forewordbody.cxx-draft cxx-foreword -no-combinator, body.cxx-draft cxx-foreword cxx-foreword -no-combinator {
display: none;
}cxx-ednote {
display: none;
}
cxx-ednotebody.cxx-draft, body.cxx-draft cxx-ednote {
display: block;
}
cxx-ednote aside {
float: right; max-width: 40%; margin: 1ex; border: 1px dashed rgb(136, 136, 136); padding: 1ex; background-color: rgb(238, 238, 238);
}
cxx-ednote.para aside {
float: none; max-width: none;
}cxx-note .nowrap {
white-space: nowrap;
}cxx-footnote {
font-family: serif; white-space: normal; text-indent: initial;textIndent: initial; text-indent: initial;
}
@media screen {
cxx-footnote aside {
float: right; max-width: 30%; margin-left: 1em;
}
}
@media print {
cxx-footnote sup, cxx-footnote .marker {
display: none;
}
cxx-footnote aside {
}
}cxx-example {
display: block;
}
cxx-example.inline {
display: inline;
}
cxx-example .nowrap {
white-space: nowrap;
}cxx-publish-button {
display: block;
}cxx-codeblock {
display: block;
}bnf-grammar {
display: block; font-style: italic; margin-left: 0.35in;
}bnf-rule {
display: block; margin-left: 0.6in;
}bnf-alt {
display: block; margin-left: 1.2in;
}bnf-terminal {
font-style: normal;
}w-br {
white-space: normal;
}
w-br::after {
content: "";
}</style>
<meta charset="utf-8">
<style shim-shadowdom-css="">/* Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
@page {
margin: 10%;
}
@page :left {
@top-left { content: string(docname); font-weight: bold; font-size: 10pt; }
@top-right { content: normal; }
@bottom-left { content: counter(page); font-size: 10pt; }
@bottom-right { content: "© ISO/IEC " string(pubyear) " — All rights reserved";
font-size: 10pt; }
}
@page :right {
@top-left { content: normal; }
@top-right { content: string(docname); font-weight: bold; font-size: 10pt; }
@bottom-left { content: "© ISO/IEC " string(pubyear) " — All rights reserved";
font-size: 10pt; }
@bottom-right { content: counter(page); font-size: 10pt; }
}
@page :first {
@top-left { content: normal; }
@top-right { content: normal; }
@bottom-left { content: normal; }
@bottom-right { content: normal; }
}
body { margin: 0; }
@media screen {
body { max-width: 7in;
/* Make room for paragraph numbers. */
margin-left: 2em }
}
@media print {
html { font-size: 10pt; }
* code { font-size: 80%; }
/* Note that only Prince generates clickable links. */
* a[href] { text-decoration:none; }
}
@media screen {
/* Needed to make the <cxx-titlepage>'s vertical spacing work.
For print see the <cxx-titlepage> definition. */
html, body {height: 100%}
}
* .docname { string-set: docname content(); }
* .pubyear { string-set: pubyear content(); }
cxx-clause, cxx-foreword { page-break-before: always; }
@media screen {
cxx-clause, cxx-toc, cxx-foreword { margin-top: 3em; }
}
cxx-clause header, cxx-foreword h1 { font-size: 150%; }
cxx-toc h1 { font-size: 150%; }
cxx-clause cxx-section header { font-size: 117%; }
cxx-clause cxx-section cxx-section header { font-size: 100%; }
[data-bookmark-label] { bookmark-label: attr(data-bookmark-label); }
h1 { bookmark-level: 1; }
cxx-toc h1 { bookmark-level: 2; }
cxx-clause h1, cxx-foreword h1 { bookmark-level: 2; }
cxx-clause cxx-section h1 { bookmark-level: 3; }
cxx-clause cxx-section cxx-section h1 { bookmark-level: 4; }
/* The <h2> is a subtitle, which shouldn't get a PDF bookmark. */
cxx-titlepage h2 { bookmark-level: none; }
* .section-number { string-set: current-section "§ " content(); }
p {margin-top: .5em; margin-bottom: .5em}
p:first-child, ul, ol {margin-top: 0}
[para_num]::before { content: attr(para_num); float: left;
font-size: 70%; margin-left: -2.5em; width: 1.5em; text-align: right; }
del {text-decoration: line-through; color: #8B0040;}
ins {text-decoration: underline; color: #005100;}
pre {
margin-left: 1em;
margin-top: .5em;
margin-bottom: .5em;
}
* wbr::after {
white-space: normal;
content: '\200B';
}
* code {
/* Make inline code avoid line wraps unless we override it with <wbr>. */
white-space: nowrap;
}
* pre code {
/* Keep block-code wrapping according to its context. */
white-space: inherit;
}
* table {
border-collapse: collapse;
}
* td, th {
padding-left: .2em;
padding-right: .2em;
border: thin solid black;
}
/* Use an em-dash for the list bullet.
'print' is a proxy for supporting ::marker. */
@media screen {
ul {
list-style: none;
/* Relative positioning on the 'ul' lets the absolutely-positioned
marker align relative to it.*/
position: relative;
}
ul li:before {
content: "\2014";
position: absolute; left: 10px;
}
}
@media print {
ul li::marker {
content: "\2014";
}
[is=cxx-table].list ul li::marker {
content: none;
}
}
/* This is here rather than inside elements/toc.html because browsers
don't understand leader() or target-counter(), so they drop them
inside the CSSOM. */
@media print {
/* Generate page numbers in the table of contents. */
cxx-toc a[href]::after { content: leader(" . ") target-counter(attr(href), page); }
cxx-footnote aside { float: footnote; footnote-policy: line; }
}</style><style shim-shadowdom-css="">/*******************************
Flex Layout
*******************************/
html [layout][horizontal], html [layout][vertical] {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
html [layout][horizontal][inline], html [layout][vertical][inline] {
display: -ms-inline-flexbox;
display: -webkit-inline-flex;
display: inline-flex;
}
html [layout][horizontal] {
-ms-flex-direction: row;
-webkit-flex-direction: row;
flex-direction: row;
}
html [layout][horizontal][reverse] {
-ms-flex-direction: row-reverse;
-webkit-flex-direction: row-reverse;
flex-direction: row-reverse;
}
html [layout][vertical] {
-ms-flex-direction: column;
-webkit-flex-direction: column;
flex-direction: column;
}
html [layout][vertical][reverse] {
-ms-flex-direction: column-reverse;
-webkit-flex-direction: column-reverse;
flex-direction: column-reverse;
}
html [layout][wrap] {
-ms-flex-wrap: wrap;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
}
html [layout][wrap-reverse] {
-ms-flex-wrap: wrap-reverse;
-webkit-flex-wrap: wrap-reverse;
flex-wrap: wrap-reverse;
}
html [flex] {
-ms-flex: 1 1 0.000000001px;
-webkit-flex: 1;
flex: 1;
-webkit-flex-basis: 0.000000001px;
flex-basis: 0.000000001px;
}
html [vertical][layout] > [flex][auto-vertical], html [vertical][layout] [flex][auto-vertical] {
-ms-flex: 1 1 auto;
-webkit-flex-basis: auto;
flex-basis: auto;
}
html [flex][auto] {
-ms-flex: 1 1 auto;
-webkit-flex-basis: auto;
flex-basis: auto;
}
html [flex][none] {
-ms-flex: none;
-webkit-flex: none;
flex: none;
}
html [flex][one] {
-ms-flex: 1;
-webkit-flex: 1;
flex: 1;
}
html [flex][two] {
-ms-flex: 2;
-webkit-flex: 2;
flex: 2;
}
html [flex][three] {
-ms-flex: 3;
-webkit-flex: 3;
flex: 3;
}
html [flex][four] {
-ms-flex: 4;
-webkit-flex: 4;
flex: 4;
}
html [flex][five] {
-ms-flex: 5;
-webkit-flex: 5;
flex: 5;
}
html [flex][six] {
-ms-flex: 6;
-webkit-flex: 6;
flex: 6;
}
html [flex][seven] {
-ms-flex: 7;
-webkit-flex: 7;
flex: 7;
}
html [flex][eight] {
-ms-flex: 8;
-webkit-flex: 8;
flex: 8;
}
html [flex][nine] {
-ms-flex: 9;
-webkit-flex: 9;
flex: 9;
}
html [flex][ten] {
-ms-flex: 10;
-webkit-flex: 10;
flex: 10;
}
html [flex][eleven] {
-ms-flex: 11;
-webkit-flex: 11;
flex: 11;
}
html [flex][twelve] {
-ms-flex: 12;
-webkit-flex: 12;
flex: 12;
}
/* alignment in cross axis */
html [layout][start] {
-ms-flex-align: start;
-webkit-align-items: flex-start;
align-items: flex-start;
}
html [layout][center], html [layout][center-center] {
-ms-flex-align: center;
-webkit-align-items: center;
align-items: center;
}
html [layout][end] {
-ms-flex-align: end;
-webkit-align-items: flex-end;
align-items: flex-end;
}
/* alignment in main axis */
html [layout][start-justified] {
-ms-flex-pack: start;
-webkit-justify-content: flex-start;
justify-content: flex-start;
}
html [layout][center-justified], html [layout][center-center] {
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
}
html [layout][end-justified] {
-ms-flex-pack: end;
-webkit-justify-content: flex-end;
justify-content: flex-end;
}
html [layout][around-justified] {
-ms-flex-pack: distribute;
-webkit-justify-content: space-around;
justify-content: space-around;
}
html [layout][justified] {
-ms-flex-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
}
/* self alignment */
html [self-start] {
-ms-align-self: flex-start;
-webkit-align-self: flex-start;
align-self: flex-start;
}
html [self-center] {
-ms-align-self: center;
-webkit-align-self: center;
align-self: center;
}
html [self-end] {
-ms-align-self: flex-end;
-webkit-align-self: flex-end;
align-self: flex-end;
}
html [self-stretch] {
-ms-align-self: stretch;
-webkit-align-self: stretch;
align-self: stretch;
}
/*******************************
Other Layout
*******************************/
html [block] {
display: block;
}
/* ie support for hidden */
html [hidden] {
display: none !important;
}
html [relative] {
position: relative;
}
html [fit] {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
body[fullbleed] {
margin: 0;
height: 100vh;
}
/*******************************
Other
*******************************/
html [segment], html segment {
display: block;
position: relative;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
margin: 1em 0.5em;
padding: 1em;
background-color: white;
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
border-radius: 5px 5px 5px 5px;
}</style>
<title>C++ Extensions for Library Fundamentals, Version 2, Working Draft</title></head>
<body class="cxx-draft">
<cxx-titlepage>
<div class="page">
<table class="header">
<tbody><tr><th>Document Number:</th><td><cxx-docnum class="docname">N4600</cxx-docnum></td></tr>
<tr><th>Date:</th><td><time pubdate=""><span class="pubyear">2016</span>-07-01</time></td></tr>
<tr><th>Revises:</th><td><cxx-revises><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/n4584.html">N4584</a></cxx-revises></td></tr>
<tr><th>Editor:</th><td><cxx-editor>
Geoffrey Romer<br>
Google, Inc.<br>
<cxx-email><a href="mailto:[email protected]">[email protected]</a></cxx-email>
</cxx-editor></td></tr>
</tbody></table>
<h1>Working Draft, C++ Extensions for Library Fundamentals, Version 2</h1>
<p class="warning"><strong>Note: this is an early draft. It’s known to be
incomplet and incorrekt, and it has lots of b<span style="margin-left: -1.2pt; margin-right: 1pt">a</span>d<span style="width:1.5em"> </span>for<span style="margin-left:-3pt; margin-right:0.6pt">mat</span>ti<span style="position:relative; top:-0.15ex">n</span>g.</strong></p>
</div>
</cxx-titlepage>
<cxx-toc>
<nav>
<h1>Contents</h1>
<ol>
<li><span class="marker">1</span><a href="#general">General</a>