22.5 Nontype Template Arguments (cont.)
Size could be specified by integer template arguments:
template<typename T, int ROWS, int COLUMNS> class Matrix { . . . private: T data[ROWS][COLUMNS]; };
Note, the integer values must be known at compile time
prev
|
top
|
next