| 5 | int rows, cols, cnt; vector<T> data; |
| 6 | inline T& at(int i, int j) { return data[i * cols + j]; } |
| 7 | matrix(int r, int c) : rows(r), cols(c), cnt(r * c) { |
| 8 | data.assign(cnt, T(0)); } |
| 9 | matrix(const matrix& other) : rows(other.rows), |
| 10 | cols(other.cols), cnt(other.cnt), data(other.data) { } |
| 11 | T& operator()(int i, int j) { return at(i, j); } |
nothing calls this directly
no outgoing calls
no test coverage detected