Lecture 6 - Slide 38 : 40
Generalizing Select with use of a variadic template

The selection shown on the previous slides is ugly - and limited to selection of one out of 4 types

Here we illustrate a generalization of select programmed with variadic templates

An embellishment removes a little syntactical noice

The Integer struct is straightforward

Yet another version of type function - generalized to selection among an arbitrary number of types.
General selection stuff - shorter and more elegant - using variadic templates (C++11).