Hi,
I am learning templates so I have one question for this code:
template<typename T, int Number>
class Data{
T Array[Number];
public:
T& operator[](int);
};
template <typename T,int Number>
T& Data<T,Number>::operator[](int element){
return Array[element];
}
I wish to create specialization for that class template, for any random data type, but my knowledge allows me only to create class template specialization for template with only one parameter .
So I don't understand how'd the code look for class template specialization which contains expression parameter ( int Number ).
Thanks.