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

后端 未结 0 1787
既然无缘
既然无缘 2020-12-23 01:13

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

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