C++: Elegant Ways to Map Runtime Values to Types

How to elegantly dispatch from runtime values to compile-time types in C++ using techniques like std::variant, type lists, and template metaprogramming.

July 31, 2022 · 3 min · Nimrod