Added a snippet for template function in cpp/snippets section