Vollstndige Spezialisierung
public cpp v1 · immutable#include <iostream>using namespace std;template <class T1,class T2> struct X{ void hello() { cout << "Nicht-spezialisiertes Template" << endl; }};template <> struct X<int,double>{ void hello() { cout << "vollständig spezialisiertes Template" << endl; }};int main(){ X<char,char>().hello(); // "Nicht-spezialisiertes Template" X<int,double>().hello(); // "vollständig spezialisiertes Template" return 0; }