tmp/tmp7cmu6ukz/{from.md → to.md}
RENAMED
|
@@ -71,17 +71,17 @@ equivalent to `goto` `contin`.
|
|
| 71 |
|
| 72 |
A function returns to its caller by the `return` statement.
|
| 73 |
|
| 74 |
A return statement with neither an *expression* nor a *braced-init-list*
|
| 75 |
can be used only in functions that do not return a value, that is, a
|
| 76 |
-
function with the return type `void`, a constructor (
|
| 77 |
-
or a destructor ([[class.dtor]]). A return statement
|
| 78 |
-
of non-void type can be used only in functions
|
| 79 |
-
value of the expression is returned to the caller
|
| 80 |
-
value of the expression is implicitly converted to
|
| 81 |
-
the function in which it appears. A return statement
|
| 82 |
-
construction and copy or move of a temporary object (
|
| 83 |
[[class.temporary]]). A copy or move operation associated with a return
|
| 84 |
statement may be elided or considered as an rvalue for the purpose of
|
| 85 |
overload resolution in selecting a constructor ([[class.copy]]). A
|
| 86 |
return statement with a *braced-init-list* initializes the object or
|
| 87 |
reference to be returned from the function by copy-list-initialization (
|
|
|
|
| 71 |
|
| 72 |
A function returns to its caller by the `return` statement.
|
| 73 |
|
| 74 |
A return statement with neither an *expression* nor a *braced-init-list*
|
| 75 |
can be used only in functions that do not return a value, that is, a
|
| 76 |
+
function with the return type cv `void`, a constructor (
|
| 77 |
+
[[class.ctor]]), or a destructor ([[class.dtor]]). A return statement
|
| 78 |
+
with an expression of non-void type can be used only in functions
|
| 79 |
+
returning a value; the value of the expression is returned to the caller
|
| 80 |
+
of the function. The value of the expression is implicitly converted to
|
| 81 |
+
the return type of the function in which it appears. A return statement
|
| 82 |
+
can involve the construction and copy or move of a temporary object (
|
| 83 |
[[class.temporary]]). A copy or move operation associated with a return
|
| 84 |
statement may be elided or considered as an rvalue for the purpose of
|
| 85 |
overload resolution in selecting a constructor ([[class.copy]]). A
|
| 86 |
return statement with a *braced-init-list* initializes the object or
|
| 87 |
reference to be returned from the function by copy-list-initialization (
|