| 1213 | /// May throw if the index would lead to out of bounds access. |
| 1214 | template <typename... Ix> |
| 1215 | ssize_t offset_at(Ix... index) const { |
| 1216 | if ((ssize_t) sizeof...(index) > ndim()) { |
| 1217 | fail_dim_check(sizeof...(index), "too many indices for an array"); |
| 1218 | } |
| 1219 | return byte_offset(ssize_t(index)...); |
| 1220 | } |
| 1221 | |
| 1222 | ssize_t offset_at() const { return 0; } |
| 1223 |
no outgoing calls