abseil / Tip of the Week #117: Copy Elision and Pass-by-value
abseil.io有了 std::move 以及 Move Semantics 後,「輸入參數(Input Parameters)」最合適的寫法可能不再是 Pass by Reference To Const,例如 const std::string&,而是 Pass by Value with Move Semantics。
Read more...This link was published in:
有了 std::move 以及 Move Semantics 後,「輸入參數(Input Parameters)」最合適的寫法可能不再是 Pass by Reference To Const,例如 const std::string&,而是 Pass by Value with Move Semantics。
Read more...