Run-time choosing of template specializations using compile-time lookup-tables. Compile all possible states of a templated function, but execute the optimal one at run-time.