以下我們會先介紹 std::any 的基本用法,接著介紹實際的使用情境。 ... int main() { std::any a(std::make_unique<int>(5)); // Compilation error. } ...
確定! 回上一頁