Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2022. The current version is 1.91.0.
boost::histogram::axis::traits::value — Returns axis value for index.
// In header: <boost/histogram/axis/traits.hpp> template<typename Axis> decltype(auto) value(const Axis & axis, real_index_type index);
If the axis has no value method, throw std::runtime_error. If the method exists and accepts a floating point index, pass the index and return the result. If the method exists but accepts only integer indices, cast the floating point index to int, pass this index and return the result.
Parameters: |
|