const double len1＝getvectorlength&lt;double&gt;(1,2,3);//double getvectorlength(double,double,double)