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

Method lower

include/boost/histogram/axis/types.hpp:427–431  ·  view source on GitHub ↗

Returns lower edge of the integral bin.

Source from the content-addressed store, hash-verified

425
426 /// Returns lower edge of the integral bin.
427 value_type lower(int i) const noexcept {
428 if (i < 0) { return -std::numeric_limits<value_type>::max(); }
429 if (i > base_type::size()) { return std::numeric_limits<value_type>::max(); }
430 return min_ + i;
431 }
432
433 bin_type operator[](int idx) const noexcept { return bin_type(idx, *this); }
434

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected