Sample C template code