Lines Matching full:template
114 // Declare a template using a calling convention.
115 template <class CharT> inline int __cdecl mystrlen(const CharT *str) {
121 template <> inline int __cdecl mystrlen(const char *str) {
166 template <typename T> void __stdcall StdcallTemplate(T) {}
167 template <> void StdcallTemplate<int>(int) {}
168 template <> void __stdcall StdcallTemplate<short>(short) {}
170 // FIXME: Note the template, not the implicit instantiation.
173 template <> void __cdecl StdcallTemplate<long>(long) {}
176 template <typename T> static int cast_to_int(T) {
180 template <> inline int ExactlyInt::cast_to_int<int>(int x) { return x; }
184 template <typename T> void bar(T v);
186 extern template void foo::bar(const void *);
200 template <typename T> static void bar(T v);
202 extern template void foo::bar(const void *);
206 template <class T>
210 extern template void valarray<int>::bar();
226 template <typename T>
232 template<> void S<void*>::f(void*);
239 template <typename T>
245 template<> void __cdecl S<void*>::f(void*); // expected-error {{function declared 'cdecl' here was previously declared without calling convention}}
253 template <typename F>
257 template <typename C, typename R, typename A>