请解释之间有什么区别union和std::variant为什么 std::variant引入标准?我们应该在什么情况下使用std::variant旧学校union?
union
std::variant
c++ c++17
c++ ×1
c++17 ×1