Replacing Polymorphic Hierarchies with std::variant and std::visit in Modern C++
Replace classic polymorphism with C++17’s std::variant and std::visit. Learn why variants are faster, how to use them, and when they’re not the best fit.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Replace classic polymorphism with C++17’s std::variant and std::visit. Learn why variants are faster, how to use them, and when they’re not the best fit.