boost::histogram::axis::traits::width_as — Returns bin width at axis index.
Synopsis
// In header: <boost/histogram/axis/traits.hpp>
template<typename Result,typename Axis>Resultwidth_as(constAxis& axis,index_type index);
Description
Like boost::histogram::axis::traits::width, but converts the result into the requested return type. If the conversion is not possible, throw std::runtime_error.