...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::histogram::axis::interval_view — Lightweight bin view.
// In header: <boost/histogram/axis/interval_view.hpp> template<typename Axis> class interval_view { public: // construct/copy/destruct interval_view(const Axis &, int); interval_view(Axis &&, int) = delete; // public member functions decltype(auto) lower() const noexcept; decltype(auto) upper() const noexcept; decltype(auto) center() const noexcept; decltype(auto) width() const noexcept; template<typename BinType> bool operator==(const BinType &) const noexcept; template<typename BinType> bool operator!=(const BinType &) const noexcept; };
Represents the current bin interval.
interval_view
public member functionsdecltype(auto) lower() const noexcept;Return lower edge of bin.
decltype(auto) upper() const noexcept;Return upper edge of bin.
decltype(auto) center() const noexcept;Return center of bin.
decltype(auto) width() const noexcept;Return width of bin.
template<typename BinType> bool operator==(const BinType & rhs) const noexcept;
template<typename BinType> bool operator!=(const BinType & rhs) const noexcept;