C++: Elegant Ways to Map Runtime Values to Types This post introduces two elegant ways to dispatch based on runtime values.