`std::variant` vs. inheritance vs. other ways (performance)

后端 未结 0 499
抹茶落季
抹茶落季 2020-12-23 00:44

I\'m wondering about std::variant performance. When should I not use it? It seems like virtual functions are still much better than using std::visit

相关标签:
回答
  • 消灭零回复
提交回复
热议问题