| 193 | ) const { return nr_; } |
| 194 | |
| 195 | row operator[] ( |
| 196 | long row_ |
| 197 | ) |
| 198 | { |
| 199 | // make sure requires clause is not broken |
| 200 | DLIB_ASSERT(row_ < nr() && row_ >= 0, |
| 201 | "\trow array2d::operator[](long row_)" |
| 202 | << "\n\tThe row index given must be less than the number of rows." |
| 203 | << "\n\tthis: " << this |
| 204 | << "\n\trow_: " << row_ |
| 205 | << "\n\tnr(): " << nr() |
| 206 | ); |
| 207 | |
| 208 | return row(data+row_*nc_, nc_); |
| 209 | } |
| 210 | |
| 211 | const row operator[] ( |
| 212 | long row_ |