強制性複製elision是否適用於通過結構化綁定進行分解?下列哪些情況適用於? // one
auto [one, two] = std::array<SomeClass>{SomeClass{1}, SomeClass{2}};
// two
auto [one, two] = std::make_tuple(SomeClass{1}, SomeClass{2});
// three
爲以下包裝類跟上std::unique_ptr中間對象來訪問me成員而不復制me的「OK」的方式? 下面是示例 #include <iostream>
#include <memory>
/* myobj from another library */
class myobj {
public:
std::string me; /* actual member of inter