結果 : define template method in cpp