| 991 | /// May throw if the index would lead to out of bounds access. |
| 992 | template <typename... Ix> |
| 993 | ssize_t offset_at(Ix... index) const { |
| 994 | if ((ssize_t) sizeof...(index) > ndim()) { |
| 995 | fail_dim_check(sizeof...(index), "too many indices for an array"); |
| 996 | } |
| 997 | return byte_offset(ssize_t(index)...); |
| 998 | } |
| 999 | |
| 1000 | ssize_t offset_at() const { return 0; } |
| 1001 |
no outgoing calls