public:lang:cplusplus:effective_modern_cplusplus

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
public:lang:cplusplus:effective_modern_cplusplus [2026/05/07 15:07] – ↷ 页面public:it:cplusplus:effective_modern_cplusplus被移动至public:lang:cplusplus:effective_modern_cplusplus oakfirepublic:lang:cplusplus:effective_modern_cplusplus [2026/08/13 11:21] (当前版本) – [章节1. 类型推导(Deducing types)] oakfire
行 29: 行 29:
 <WRAP tablewidth 80% center> <WRAP tablewidth 80% center>
 ^ 形参                         ^ 实参                                                       ^ 推导结果                       ^ ^ 形参                         ^ 实参                                                       ^ 推导结果                       ^
-| f(T*), f(T&), f(const T& | int i;                                                   | T ⇒  int                   +|''f(T*), f(T&), f(const T&)''|int i;|T ⇒int| 
-| f(T*), f(T&), f(const T& | int& ri=i;                                               | T ⇒  int                   +|''f(T*), f(T&), f(const T&)''|int& ri=i;|T ⇒  int| 
-| f(T*), f(T&              | const int& ci=i;                                         | T ⇒  const int             |+''f(T*), f(T&)''               | const int& ci=i;                                         | T ⇒  const int             |
 | f(const T&               | const int& ci=i;                                         | T ⇒ int                    | | f(const T&               | const int& ci=i;                                         | T ⇒ int                    |
 | f(T&& param)               | lvalue 左值i,ri                                            | T ⇒ int&; param ⇒ int&     | | f(T&& param)               | lvalue 左值i,ri                                            | T ⇒ int&; param ⇒ int&     |
  • public/lang/cplusplus/effective_modern_cplusplus.txt
  • 最后更改: 2026/08/13 11:21
  • oakfire