jeudi 13 mars 2014

C++ templates - why types come first, and integer parameters after


Vote count:

0




For example, in Stroustrup's matrix implementation, why the type of elements comes first, and then comes the number of dimensions? Also, in all std classes, this rule is obeyed: in the template parameter lists between the <>, first come the types, and then actual int values.



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire