template function register(TheMap::function_type & function); template <> function register<0>(TheMap::function_type & function); template <> function register<1>(TheMap::function_type & function); //...