File tree Expand file tree Collapse file tree 11 files changed +28
-28
lines changed Expand file tree Collapse file tree 11 files changed +28
-28
lines changed Original file line number Diff line number Diff line change 600
600
Such declarations give special access rights to the friends, but they
601
601
do not make the nominated friends members of the befriending class.
602
602
\begin {example }
603
- the following example illustrates the differences between
603
+ The following example illustrates the differences between
604
604
members and friends:
605
605
\indextext {friend function!member function and}%
606
606
\indextext {example!friend function}%
Original file line number Diff line number Diff line change 547
547
548
548
\pnum
549
549
\begin {example }
550
- in
550
+ In
551
551
552
552
\begin {codeblock }
553
553
int j = 24;
Original file line number Diff line number Diff line change 1242
1242
Once the static data member has been defined, it exists even if
1243
1243
no objects of its class have been created.
1244
1244
\begin {example }
1245
- in the example above, \tcode {run_chain} and \tcode {running} exist even
1245
+ In the example above, \tcode {run_chain} and \tcode {running} exist even
1246
1246
if no objects of class \tcode {process} are created by the program.
1247
1247
\end {example }
1248
1248
\end {note }
Original file line number Diff line number Diff line change 548
548
declaration~(\ref {class.name }) or enum declaration does.
549
549
\begin {example }
550
550
\indextext {example!\idxcode {typedef}}%
551
- after
551
+ After
552
552
553
553
\begin {codeblock }
554
554
typedef int MILES, *KLICKSP;
2628
2628
declarative region to refer only to the namespace to which it already
2629
2629
refers.
2630
2630
\begin {example }
2631
- the following declarations are well-formed:
2631
+ The following declarations are well-formed:
2632
2632
2633
2633
\begin {codeblock }
2634
2634
namespace Company_with_very_long_name { @\commentellip@ }
Original file line number Diff line number Diff line change 465
465
determines the type
466
466
\tcode {T}.
467
467
\begin {example }
468
- in the declaration
468
+ In the declaration
469
469
470
470
\begin {codeblock }
471
471
int unsigned i;
547
547
548
548
\pnum
549
549
\begin {example }
550
- the declarations
550
+ The declarations
551
551
\indextext {example!\idxcode {const}}%
552
552
\indextext {example!constant pointer}%
553
553
\begin {codeblock }
1185
1185
the result is the pointed-to $ (n-1 )$ -dimensional array,
1186
1186
which itself is immediately converted into a pointer.
1187
1187
\begin {example }
1188
- consider
1188
+ Consider
1189
1189
1190
1190
\begin {codeblock }
1191
1191
int x[3][5];
1381
1381
\begin {example }
1382
1382
\indextext {example!ellipsis}%
1383
1383
\indextext {example!variable parameter list}%
1384
- the declaration
1384
+ The declaration
1385
1385
1386
1386
\begin {codeblock }
1387
1387
int printf(const char*, ...);
1502
1502
\pnum
1503
1503
\begin {example }
1504
1504
\indextext {example!function declaration}%
1505
- the declaration
1505
+ The declaration
1506
1506
1507
1507
\begin {codeblock }
1508
1508
int fseek(FILE*, long, int);
1559
1559
1560
1560
\pnum
1561
1561
\begin {example }
1562
- the declaration
1562
+ The declaration
1563
1563
1564
1564
\indextext {example!declaration}%
1565
1565
\begin {codeblock }
1696
1696
\pnum
1697
1697
\indextext {argument!example of default}%
1698
1698
\begin {example }
1699
- the declaration
1699
+ The declaration
1700
1700
1701
1701
\begin {codeblock }
1702
1702
void point(int = 3, int = 4);
1806
1806
arguments in function templates and in member functions of
1807
1807
class templates are performed as described in~\ref {temp.inst }.
1808
1808
\begin {example }
1809
- in the following code,
1809
+ In the following code,
1810
1810
\indextext {argument!example of default}%
1811
1811
\tcode {g}
1812
1812
will be called with the value
1911
1911
the \grammarterm {id-expression} of a class member access expression (\ref {expr.ref }) or
1912
1912
unless it is used to form a pointer to member (\ref {expr.unary.op }).
1913
1913
\begin {example }
1914
- the declaration of
1914
+ The declaration of
1915
1915
\tcode {X::mem1()}
1916
1916
in the following example is ill-formed because no object is supplied for the
1917
1917
non-static member
2027
2027
2028
2028
\pnum
2029
2029
\begin {example }
2030
- a simple example of a complete function definition is
2030
+ A simple example of a complete function definition is
2031
2031
2032
2032
\indextext {example!function definition}%
2033
2033
\begin {codeblock }
Original file line number Diff line number Diff line change 1557
1557
The initialization and destruction of each parameter occurs
1558
1558
within the context of the calling function.
1559
1559
\begin {example }
1560
- the access of the constructor, conversion functions or destructor is
1560
+ The access of the constructor, conversion functions or destructor is
1561
1561
checked at the point of call in the calling function. If a constructor
1562
1562
or destructor for a function parameter throws an exception, the search
1563
1563
for a handler starts in the scope of the calling function; in
3123
3123
The \grammarterm {expression} in a \grammarterm {noptr-new-declarator}is
3124
3124
implicitly converted to \tcode {std\colcol {}size_t}.
3125
3125
\begin {example }
3126
- given the definition \tcode {int n = 42},
3126
+ Given the definition \tcode {int n = 42},
3127
3127
\tcode {new float[n][5]} is well-formed (because \tcode {n} is the
3128
3128
\grammarterm {expression} of a \grammarterm {noptr-new-declarator}), but
3129
3129
\tcode {new float[5][n]} is ill-formed (because \tcode {n} is not a
Original file line number Diff line number Diff line change 164
164
\defncontext {glvalue} type of the most derived object~(\ref {intro.object }) to which the
165
165
glvalue refers\\
166
166
\begin {example }
167
- if a pointer~(\ref {dcl.ptr }) \tcode {p} whose static type is `` pointer to
167
+ If a pointer~(\ref {dcl.ptr }) \tcode {p} whose static type is `` pointer to
168
168
class \tcode {B}'' is pointing to an object of class \tcode {D}, derived
169
169
from \tcode {B} (Clause~\ref {class.derived }), the dynamic type of the
170
170
expression \tcode {*p} is `` \tcode {D}'' . References~(\ref {dcl.ref }) are
Original file line number Diff line number Diff line change 324
324
These requirements can be inferred from the uses that algorithm
325
325
makes of \tcode {==} and \tcode {!=}.
326
326
\begin {example }
327
- the call \tcode {find(a,b,x)}
327
+ The call \tcode {find(a,b,x)}
328
328
is defined only if the value of \tcode {a}
329
329
has the property \textit {p }
330
330
defined as follows:
Original file line number Diff line number Diff line change 92
92
these member function declarations can be overloaded if they differ in
93
93
the type of their implicit object parameter.
94
94
\begin {example }
95
- the following illustrates this distinction:
95
+ The following illustrates this distinction:
96
96
97
97
\begin {codeblock }
98
98
class X {
282
282
Two parameter declarations that differ only in their default arguments
283
283
are equivalent.
284
284
\begin {example }
285
- consider the following:
285
+ Consider the following:
286
286
287
287
\begin {codeblock }
288
288
void f (int i, int j);
535
535
is the cv-qualification on the
536
536
member function declaration.
537
537
\begin {example }
538
- for a
538
+ For a
539
539
\tcode {const}
540
540
member
541
541
function of class
1868
1868
Any difference in top-level cv-qualification is
1869
1869
subsumed by the initialization itself and does not constitute a conversion.
1870
1870
\begin {example }
1871
- a parameter of type
1871
+ A parameter of type
1872
1872
\tcode {A}
1873
1873
can be initialized from an argument of type
1874
1874
\tcode {const A}.
2113
2113
do not affect the formation of a standard conversion
2114
2114
sequence, however.
2115
2115
\begin {example }
2116
- a function with an `` lvalue reference to \tcode {int}'' parameter can
2116
+ A function with an `` lvalue reference to \tcode {int}'' parameter can
2117
2117
be a viable candidate even if the corresponding argument is an
2118
2118
\tcode {int}
2119
2119
bit-field.
Original file line number Diff line number Diff line change 59
59
\indextext {access control!member function and}%
60
60
Special member functions obey the usual access rules (Clause~\ref {class.access }).
61
61
\begin {example }
62
- declaring a constructor
62
+ Declaring a constructor
63
63
\tcode {protected}
64
64
ensures that only derived classes and friends can create objects using it.
65
65
\end {example }
You can’t perform that action at this time.
0 commit comments