![]() |
Home | Libraries | People | FAQ | More |
boost::histogram::axis::traits::value_as — Returns axis value for index if it is convertible to target type or throws.
// In header: <boost/histogram/axis/traits.hpp> template<typename Result, typename Axis> Result value_as(const Axis & axis, real_index_type index);
Like boost::histogram::axis::traits::value, but converts the result into the requested return type. If the conversion is not possible, throws std::runtime_error.
Parameters: |
|
||||
Template Parameters: |
|