[Template Meta-|Generic] Programming
M. C. Burton, W. G. Griswold, A. D. McCulloch, G. A. Huber,
``Static Data Structures - Reconciling Template Metaprogramming and
Generic Programming'', IFIP Working Conference on Generic Programming,
Kluwer, July 2002
I thought this was an interesting twist on "template abuse", in the
spirit of Spirit
and the Lambda
Library. Instead of using templates for compile-time computation,
the authors use them to create compile-time
"sequences" that follow much of the syntax of STL containers. The
goal is to make it possible to swap in a static array for a run-time
one with a minimal number of changes (and a maximal amount of
additional compile time).
|