Problem:
Question- What is the difference between typename and class if there is one?:
template class singleList{
.......}
template class singleList{
........}
And I saw a related example use object insead of comparable, is there a diffence or are they just the name of this template variable type?what is the difference between typename and class if there is one?:
template class singleList{
.......}
template class singleList{
........}
And I saw a related example use object insead of comparable, is there a diffence or are they just the name of this template variable type?
Could someone help to explain the answer of question.