Pay attention carefully because this is a hell of a question ;-)
I want to use template functions for generic collection actions (like search, foreach, etc.) in C wh
For information, the source code of GCC 4.6 implements similar tricks for vectors. Look into its file gcc/vec.h
gcc/vec.h