以 std::pair 為例,Structured Binding 能讓我們能直接將 std::pair 的內容綁定到我們指定的識別字:. auto [a, b] = std::make_pair("str", 0);.
確定! 回上一頁