結果 : defining template function in cpp