Lines Matching full:template
45 // A template declaration will not be decorated with `optnone`.
46 template <typename T> T twice (T param);
48 // The template definition will be decorated with the attribute `optnone`.
49 template <typename T> T thrice (T param) {
76 // This instantiation of the "twice" template function with a "float" type
77 // will not have an `optnone` attribute because the template declaration was
85 // This instantiation of the "thrice" template function with a "float" type
86 // will have an `optnone` attribute because the template definition was
95 // A template specialization is a new definition and it will not be
98 template<> int thrice(int par) {