tmp/tmpom3p6c2i/{from.md → to.md}
RENAMED
|
@@ -2,17 +2,17 @@
|
|
| 2 |
|
| 3 |
A function returns to its caller by the `return` statement.
|
| 4 |
|
| 5 |
A return statement with neither an *expression* nor a *braced-init-list*
|
| 6 |
can be used only in functions that do not return a value, that is, a
|
| 7 |
-
function with the return type `void`, a constructor (
|
| 8 |
-
or a destructor ([[class.dtor]]). A return statement
|
| 9 |
-
of non-void type can be used only in functions
|
| 10 |
-
value of the expression is returned to the caller
|
| 11 |
-
value of the expression is implicitly converted to
|
| 12 |
-
the function in which it appears. A return statement
|
| 13 |
-
construction and copy or move of a temporary object (
|
| 14 |
[[class.temporary]]). A copy or move operation associated with a return
|
| 15 |
statement may be elided or considered as an rvalue for the purpose of
|
| 16 |
overload resolution in selecting a constructor ([[class.copy]]). A
|
| 17 |
return statement with a *braced-init-list* initializes the object or
|
| 18 |
reference to be returned from the function by copy-list-initialization (
|
|
|
|
| 2 |
|
| 3 |
A function returns to its caller by the `return` statement.
|
| 4 |
|
| 5 |
A return statement with neither an *expression* nor a *braced-init-list*
|
| 6 |
can be used only in functions that do not return a value, that is, a
|
| 7 |
+
function with the return type cv `void`, a constructor (
|
| 8 |
+
[[class.ctor]]), or a destructor ([[class.dtor]]). A return statement
|
| 9 |
+
with an expression of non-void type can be used only in functions
|
| 10 |
+
returning a value; the value of the expression is returned to the caller
|
| 11 |
+
of the function. The value of the expression is implicitly converted to
|
| 12 |
+
the return type of the function in which it appears. A return statement
|
| 13 |
+
can involve the construction and copy or move of a temporary object (
|
| 14 |
[[class.temporary]]). A copy or move operation associated with a return
|
| 15 |
statement may be elided or considered as an rvalue for the purpose of
|
| 16 |
overload resolution in selecting a constructor ([[class.copy]]). A
|
| 17 |
return statement with a *braced-init-list* initializes the object or
|
| 18 |
reference to be returned from the function by copy-list-initialization (
|