MCPcopy Create free account
hub / github.com/boostorg/histogram / at_impl

Function at_impl

include/boost/histogram/detail/axes.hpp:589–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587
588template <typename A, typename... Us>
589std::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
597template <typename A, typename U>
598std::size_t at_impl(detail::static_container_tag, const A& axes, const U& u) {

Callers 1

atMethod · 0.85

Calls 4

dimension_checkFunction · 0.85
optional_indexClass · 0.85
indices_to_index_getFunction · 0.85
indices_to_index_iterFunction · 0.85

Tested by

no test coverage detected