Adresa
:
[go:
nahoru
,
domu
]
12
Overloading
[over]
12.4
Overloaded operators
[over.oper]
12.4.4
Function call
[over.call]
1
#
A
function call operator function
is a function named
operator
(
)
that is a member function with an arbitrary number of parameters
.
It may have default arguments
.
For an expression of the form
postfix-expression
(
expression-list
o
p
t
)
where the
postfix-expression
is of class type, the operator function is selected by overload resolution (
[over.
call.
object]
)
.
If a surrogate call function is selected, let
e
be the result of invoking the corresponding conversion operator function on the
postfix-expression
;
the expression is interpreted as
e
(
expression-list
o
p
t
)
Otherwise, the expression is interpreted as
postfix-expression
.
operator
(
)
(
expression-list
o
p
t
)