Skip to content

Commit cdc1d40

Browse files
author
Colin Robertson
authored
Merge pull request #2962 from MicrosoftDocs/FromPublicMasterBranch
Confirm merge from FromPublicMasterBranch to master to sync with https://github.com/MicrosoftDocs/cpp-docs (branch master)
2 parents 30a1601 + 2e94807 commit cdc1d40

2 files changed

Lines changed: 34 additions & 13 deletions

File tree

‎.markdownlint.json‎

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,32 @@
11
{
22
"default": true,
3-
"MD002": false,
43
"DOCSMD006": false,
4+
"MD001": false,
55
"MD013": false,
6-
"MD024": { "siblings_only": true },
7-
"MD025": { "front_matter_title": "" },
6+
"MD024": {
7+
"siblings_only": true
8+
},
9+
"MD025": {
10+
"front_matter_title": ""
11+
},
812
"MD026": false,
913
"MD028": false,
10-
"MD038": false,
11-
"MD033": { "allowed_elements": ["a", "br", "em", "strong", "sub", "sup"] }
12-
}
14+
"MD033": {
15+
"allowed_elements": [
16+
"a",
17+
"br",
18+
"em",
19+
"iframe",
20+
"strong",
21+
"sub",
22+
"sup"
23+
]
24+
},
25+
"MD036": false,
26+
"MD037": false,
27+
"MD040": false,
28+
"MD041": false,
29+
"MD046": {
30+
"style": "fenced"
31+
}
32+
}

‎docs/cpp/function-call-operator-parens.md‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,25 @@ no-loc: [ opt ]
77
---
88
# Function Call Operator: ()
99

10-
A function call is a kind of *`postfix-expression`*, formed by an expression that identifies a function followed by the function-call operator, **`()`**. An object can declare an `operator ()` function, which provides function call semantics for the object.
10+
A function call is a kind of *`postfix-expression`*, formed by an expression that evaluates to a function or callable object followed by the function-call operator, **`()`**. An object can declare an `operator ()` function, which provides function call semantics for the object.
1111

1212
## Syntax
1313

1414
> *`postfix-expression`*:\
15-
> &nbsp;&nbsp;&nbsp;&nbsp;*`postfix-expression`* **`(`** *`argument-expression-list`* <sub>opt</sub> **`)`**
15+
> &emsp;*`postfix-expression`* **`(`** *`argument-expression-list`* <sub>opt</sub> **`)`**
1616
1717
## Remarks
1818

1919
The arguments to the function-call operator come from an *`argument-expression-list`*, a comma-separated list of expressions. The values of these expressions are passed to the function as arguments. The *argument-expression-list* can be empty. Before C++ 17, the order of evaluation of the function expression and the argument expressions is unspecified and may occur in any order. In C++17 and later, the function expression is evaluated before any argument expressions or default arguments. The argument expressions are evaluated in an indeterminate sequence.
2020

21-
The *`postfix-expression`* identifies the function to call. It must evaluate to a function address. It can take any of several forms:
21+
The *`postfix-expression`* evaluates to the function to call. It can take any of several forms:
2222

23-
- a function or function object name or pointer,
24-
- an lvalue expression that refers to a function or function object,
25-
- a member function accessor, either explicit or implied.
23+
- a function identifier, visible in the current scope or in the scope of any of the function arguments provided,
24+
- an expression that evaluates to a function, a function pointer, a callable object, or to a reference to one,
25+
- a member function accessor, either explicit or implied,
26+
- a dereferenced pointer to a member function.
2627

27-
The function specified by the *`postfix-expression`* may be an overloaded function. The usual rules for overload resolution determine the actual function to call.
28+
The *`postfix-expression`* may be an overloaded function identifier or overloaded member function accessor. The rules for overload resolution determine the actual function to call. If the member function is virtual, the function to call is determined at run time.
2829

2930
Some example declarations:
3031

0 commit comments

Comments
 (0)