|
639 | 639 | \terminal{\{}\br
|
640 | 640 | \bnfindent \opt{init-statement}\br
|
641 | 641 | \bnfindent \keyword{auto} \terminal{\&\&}\exposid{range} \terminal{=} for-range-initializer \terminal{;}\br
|
642 |
| -\bnfindent \keyword{auto} \exposid{begin} \terminal{=} begin-expr \terminal{;}\br |
643 |
| -\bnfindent \keyword{auto} \exposid{end} \terminal{=} end-expr \terminal{;}\br |
| 642 | +\bnfindent \keyword{auto} \exposid{begin} \terminal{=} \exposid{begin-expr} \terminal{;}\br |
| 643 | +\bnfindent \keyword{auto} \exposid{end} \terminal{=} \exposid{end-expr} \terminal{;}\br |
644 | 644 | \bnfindent \keyword{for} \terminal{(} \terminal{;} \exposid{begin} \terminal{!=} \exposid{end}\terminal{;} \terminal{++}\exposid{begin} \terminal{)} \terminal{\{}\br
|
645 | 645 | \bnfindent\bnfindent for-range-declaration \terminal{=} \terminal{*} \exposid{begin} \terminal{;}\br
|
646 | 646 | \bnfindent\bnfindent statement\br
|
|
658 | 658 | exposition only; and
|
659 | 659 |
|
660 | 660 | \item
|
661 |
| -\placeholder{begin-expr} and \placeholder{end-expr} are determined as follows: |
| 661 | +\exposid{begin-expr} and \exposid{end-expr} are determined as follows: |
662 | 662 |
|
663 | 663 | \begin{itemize}
|
664 | 664 | \item if the \grammarterm{for-range-initializer} is an expression of
|
665 |
| -array type \tcode{R}, \placeholder{begin-expr} and \placeholder{end-expr} are |
| 665 | +array type \tcode{R}, \exposid{begin-expr} and \exposid{end-expr} are |
666 | 666 | \exposid{range} and \exposid{range} \tcode{+} \tcode{N}, respectively,
|
667 | 667 | where \tcode{N} is
|
668 | 668 | the array bound. If \tcode{R} is an array of unknown bound or an array of
|
|
672 | 672 | class type \tcode{C}, the \grammarterm{unqualified-id}{s}
|
673 | 673 | \tcode{begin} and \tcode{end} are looked up in the scope of \tcode{C}
|
674 | 674 | as if by class member access lookup\iref{basic.lookup.classref}, and if
|
675 |
| -both find at least one declaration, \placeholder{begin-expr} and |
676 |
| -\placeholder{end-expr} are \tcode{\exposid{range}.begin()} and \tcode{\exposid{range}.end()}, |
| 675 | +both find at least one declaration, \exposid{begin-expr} and |
| 676 | +\exposid{end-expr} are \tcode{\exposid{range}.begin()} and \tcode{\exposid{range}.end()}, |
677 | 677 | respectively;
|
678 | 678 |
|
679 |
| -\item otherwise, \placeholder{begin-expr} and \placeholder{end-expr} are |
| 679 | +\item otherwise, \exposid{begin-expr} and \exposid{end-expr} are |
680 | 680 | \tcode{begin(\exposid{range})} and \tcode{end(\exposid{range})}, respectively,
|
681 | 681 | where \tcode{begin} and \tcode{end} are looked
|
682 | 682 | up in the associated namespaces\iref{basic.lookup.argdep}.
|
|
0 commit comments