|
103 | 103 | or the \tcode{*\keyword{this}} object\iref{expr.prim.this}.
|
104 | 104 |
|
105 | 105 | \pnum
|
106 |
| -Some names denote types or templates. In general, |
107 |
| -whenever a name is encountered it is necessary to determine whether that name denotes |
108 |
| -one of these entities before continuing to parse the program that contains it. The |
109 |
| -process that determines this is called |
110 |
| -\defnx{name lookup}{lookup!name}\iref{basic.lookup}. |
| 106 | +\begin{note} |
| 107 | +Some names denote types or templates. |
| 108 | +In general, whenever a name is encountered |
| 109 | +it is necessary to look it up\iref{basic.lookup} |
| 110 | +to determine whether that name denotes one of these entities |
| 111 | +before continuing to parse the program that contains it. |
| 112 | +\end{note} |
111 | 113 |
|
112 | 114 | \pnum
|
113 | 115 | Two names are \defnx{the same}{name!same} if
|
|
1519 | 1521 | \indextext{scope!name lookup and|see{lookup, name}}%
|
1520 | 1522 |
|
1521 | 1523 | \pnum
|
| 1524 | +\defnx{Name lookup}{lookup!name} associates the use of a name |
| 1525 | +with a set of declarations\iref{basic.def} of that name. |
1522 | 1526 | The name lookup rules apply uniformly to all names (including
|
1523 | 1527 | \grammarterm{typedef-name}{s}\iref{dcl.typedef},
|
1524 | 1528 | \grammarterm{namespace-name}{s}\iref{basic.namespace}, and
|
1525 | 1529 | \grammarterm{class-name}{s}\iref{class.name}) wherever the grammar allows
|
1526 |
| -such names in the context discussed by a particular rule. Name lookup |
1527 |
| -associates the use of a name with a set of declarations\iref{basic.def} of |
1528 |
| -that name. |
| 1530 | +such names in the context discussed by a particular rule. |
1529 | 1531 | Unless otherwise specified,
|
1530 | 1532 | the program is ill-formed if no declarations are found.
|
1531 | 1533 | If the declarations found by name lookup
|
|
0 commit comments