This article describes a method for using compile-time polymorphism through templates to improve code performance while minimizing the loss of flexibility and readability. Ben Sunshine-Hill ...