33 34 template <class TYP> // Feld-Operator 35 TYP & feld<TYP>::operator[] (int index) 36 { 37 if (index < 0 || index > maxindex) 38 exit(1); 39 return puffer[index]; 40 } 41
Bild 17-10 Feld-Klasse mit Templates