| 587 | |
| 588 | template <typename A, typename... Us> |
| 589 | std::size_t at_impl(detail::no_container_tag, const A& axes, const Us&... us) { |
| 590 | dimension_check(axes, mp11::mp_size_t<sizeof...(Us)>()); |
| 591 | auto index = detail::optional_index(); |
| 592 | detail::indices_to_index<0>(index, axes, static_cast<int>(us)...); |
| 593 | if (!index) throw std::out_of_range("indices out of bounds"); |
| 594 | return *index; |
| 595 | } |
| 596 | |
| 597 | template <typename A, typename U> |
| 598 | std::size_t at_impl(detail::static_container_tag, const A& axes, const U& u) { |
no test coverage detected