Quantcast
Channel: Bartek's coding blog
Viewing all articles
Browse latest Browse all 325

Runtime Polymorphism with std::variant and std::visit

$
0
0

std::variant and std::visit polymorphism

Runtime polymorphism usually connects with v-tables and virtual functions. However, in this blog post, I’ll show you a modern C++ technique that leverages std::variant and std::visit. This C++17 technique might offer not only better performance and value semantics but also interesting design patterns.

Read more...

Viewing all articles
Browse latest Browse all 325

Trending Articles