Skip to content

Commit cd878f8

Browse files
authored
[container.requirements] Reword Result specifications (cplusplus#6824)
1 parent f877e41 commit cd878f8

1 file changed

Lines changed: 48 additions & 30 deletions

File tree

source/containers.tex

Lines changed: 48 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@
340340
\begin{itemdescr}
341341
\pnum
342342
\result
343-
\tcode{iterator};
344-
\tcode{const_iterator} for constant \tcode{b}.
343+
\tcode{const_iterator} if \tcode{b} is of type \tcode{const X};
344+
\tcode{iterator} otherwise.
345345

346346
\pnum
347347
\returns
@@ -360,8 +360,8 @@
360360
\begin{itemdescr}
361361
\pnum
362362
\result
363-
\tcode{iterator};
364-
\tcode{const_iterator} for constant \tcode{b}.
363+
\tcode{const_iterator} if \tcode{b} is of type \tcode{const X};
364+
\tcode{iterator} otherwise.
365365

366366
\pnum
367367
\returns
@@ -826,8 +826,8 @@
826826
\begin{itemdescr}
827827
\pnum
828828
\result
829-
\tcode{reverse_iterator};
830-
\tcode{const_reverse_iterator} for constant \tcode{a}.
829+
\tcode{const_reverse_iterator} if \tcode{a} is of type \tcode{const X};
830+
\tcode{reverse_iterator} otherwise.
831831

832832
\pnum
833833
\returns
@@ -846,8 +846,8 @@
846846
\begin{itemdescr}
847847
\pnum
848848
\result
849-
\tcode{reverse_iterator};
850-
\tcode{const_reverse_iterator} for constant \tcode{a}.
849+
\tcode{const_reverse_iterator} if \tcode{a} is of type \tcode{const X};
850+
\tcode{reverse_iterator} otherwise.
851851

852852
\pnum
853853
\returns
@@ -1927,7 +1927,8 @@
19271927
\begin{itemdescr}
19281928
\pnum
19291929
\result
1930-
\tcode{reference; const_reference} for constant \tcode{a}.
1930+
\tcode{const_reference} if \tcode{a} is of type \tcode{const X};
1931+
\tcode{reference} otherwise.
19311932

19321933
\pnum
19331934
\hardexpects
@@ -1956,7 +1957,8 @@
19561957
\begin{itemdescr}
19571958
\pnum
19581959
\result
1959-
\tcode{reference; const_reference} for constant \tcode{a}.
1960+
\tcode{const_reference} if \tcode{a} is of type \tcode{const X};
1961+
\tcode{reference} otherwise.
19601962

19611963
\pnum
19621964
\hardexpects
@@ -2275,7 +2277,8 @@
22752277
\begin{itemdescr}
22762278
\pnum
22772279
\result
2278-
\tcode{reference; const_reference} for constant \tcode{a}.
2280+
\tcode{const_reference} if \tcode{a} is of type \tcode{const X};
2281+
\tcode{reference} otherwise.
22792282

22802283
\pnum
22812284
\hardexpects
@@ -2302,7 +2305,8 @@
23022305
\begin{itemdescr}
23032306
\pnum
23042307
\result
2305-
\tcode{reference; const_reference} for constant \tcode{a}.
2308+
\tcode{const_reference} if \tcode{a} is of type \tcode{const X};
2309+
\tcode{reference} otherwise.
23062310

23072311
\pnum
23082312
\returns
@@ -3792,7 +3796,8 @@
37923796
\begin{itemdescr}
37933797
\pnum
37943798
\result
3795-
\tcode{iterator}; \tcode{const_iterator} for constant \tcode{b}.
3799+
\tcode{const_iterator} if \tcode{b} is of type \tcode{const X};
3800+
\tcode{iterator} otherwise.
37963801

37973802
\pnum
37983803
\returns
@@ -3812,7 +3817,8 @@
38123817
\begin{itemdescr}
38133818
\pnum
38143819
\result
3815-
\tcode{iterator}; \tcode{const_iterator} for constant \tcode{a_tran}.
3820+
\tcode{const_iterator} if \tcode{a_tran} is of type \tcode{const X};
3821+
\tcode{iterator} otherwise.
38163822

38173823
\pnum
38183824
\returns
@@ -3902,7 +3908,8 @@
39023908
\begin{itemdescr}
39033909
\pnum
39043910
\result
3905-
\tcode{iterator}; \tcode{const_iterator} for constant \tcode{b}.
3911+
\tcode{const_iterator} if \tcode{b} is of type \tcode{const X};
3912+
\tcode{iterator} otherwise.
39063913

39073914
\pnum
39083915
\returns
@@ -3922,7 +3929,8 @@
39223929
\begin{itemdescr}
39233930
\pnum
39243931
\result
3925-
\tcode{iterator}; \tcode{const_iterator} for constant \tcode{a_tran}.
3932+
\tcode{const_iterator} if \tcode{a_tran} is of type \tcode{const X};
3933+
\tcode{iterator} otherwise.
39263934

39273935
\pnum
39283936
\returns
@@ -3943,7 +3951,8 @@
39433951
\begin{itemdescr}
39443952
\pnum
39453953
\result
3946-
\tcode{iterator}; \tcode{const_iterator} for constant \tcode{b}.
3954+
\tcode{const_iterator} if \tcode{b} is of type \tcode{const X};
3955+
\tcode{iterator} otherwise.
39473956

39483957
\pnum
39493958
\returns
@@ -3963,7 +3972,8 @@
39633972
\begin{itemdescr}
39643973
\pnum
39653974
\result
3966-
\tcode{iterator}; \tcode{const_iterator} for constant \tcode{a_tran}.
3975+
\tcode{const_iterator} if \tcode{a_tran} is of type \tcode{const X};
3976+
\tcode{iterator} otherwise.
39673977

39683978
\pnum
39693979
\returns
@@ -3984,8 +3994,9 @@
39843994
\begin{itemdescr}
39853995
\pnum
39863996
\result
3987-
\tcode{pair<iterator, iterator>};
3988-
\tcode{pair<const_iterator, const_iterator>} for constant \tcode{b}.
3997+
\tcode{pair<const_iterator, const_iterator>}
3998+
if \tcode{b} is of type \tcode{const X};
3999+
\tcode{pair<iter\-ator, iter\-ator>} otherwise.
39894000

39904001
\pnum
39914002
\effects
@@ -4004,8 +4015,9 @@
40044015
\begin{itemdescr}
40054016
\pnum
40064017
\result
4007-
\tcode{pair<iterator, iterator>};
4008-
\tcode{pair<const_iterator, const_iterator>} for constant \tcode{a_tran}.
4018+
\tcode{pair<const_iterator, const_iterator>}
4019+
if \tcode{a_tran} is of type \tcode{const X};
4020+
\tcode{pair<iter\-ator, iter\-ator>} otherwise.
40094021

40104022
\pnum
40114023
\effects
@@ -5479,7 +5491,8 @@
54795491
\begin{itemdescr}
54805492
\pnum
54815493
\result
5482-
\tcode{iterator}; \tcode{const_iterator} for constant \tcode{b}.
5494+
\tcode{const_iterator} if \tcode{b} is of type \tcode{const X};
5495+
\tcode{iterator} otherwise.
54835496

54845497
\pnum
54855498
\returns
@@ -5499,7 +5512,8 @@
54995512
\begin{itemdescr}
55005513
\pnum
55015514
\result
5502-
\tcode{iterator}; \tcode{const_iterator} for constant \tcode{a_tran}.
5515+
\tcode{const_iterator} if \tcode{a_tran} is of type \tcode{const X};
5516+
\tcode{iterator} otherwise.
55035517

55045518
\pnum
55055519
\returns
@@ -5580,8 +5594,9 @@
55805594
\begin{itemdescr}
55815595
\pnum
55825596
\result
5583-
\tcode{pair<iterator, iterator>};
5584-
\tcode{pair<const_iterator, const_iterator>} for constant \tcode{b}.
5597+
\tcode{pair<const_iterator, const_iterator>}
5598+
if \tcode{b} is of type \tcode{const X};
5599+
\tcode{pair<iter\-ator, iter\-ator>} otherwise.
55855600

55865601
\pnum
55875602
\returns
@@ -5601,8 +5616,9 @@
56015616
\begin{itemdescr}
56025617
\pnum
56035618
\result
5604-
\tcode{pair<iterator, iterator>};
5605-
\tcode{pair<const_iterator, const_iterator>} for constant \tcode{a_tran}.
5619+
\tcode{pair<const_iterator, const_iterator>}
5620+
if \tcode{a_tran} is of type \tcode{const X};
5621+
\tcode{pair<iter\-ator, iter\-ator>} otherwise.
56065622

56075623
\pnum
56085624
\returns
@@ -5739,7 +5755,8 @@
57395755
\begin{itemdescr}
57405756
\pnum
57415757
\result
5742-
\tcode{local_iterator}; \tcode{const_local_iterator} for constant \tcode{b}.
5758+
\tcode{const_local_iterator} if \tcode{b} is of type \tcode{const X};
5759+
\tcode{local_iterator} otherwise.
57435760

57445761
\pnum
57455762
\expects
@@ -5763,7 +5780,8 @@
57635780
\begin{itemdescr}
57645781
\pnum
57655782
\result
5766-
\tcode{local_iterator}; \tcode{const_local_iterator} for constant \tcode{b}.
5783+
\tcode{const_local_iterator} if \tcode{b} is of type \tcode{const X};
5784+
\tcode{local_iterator} otherwise.
57675785

57685786
\pnum
57695787
\expects

0 commit comments

Comments
 (0)