Template Function ublox_node::checkRange(std::vector<V>, T, T, const std::string&)

Function Documentation

template<typename V, typename T>
void ublox_node::checkRange(std::vector<V> val, T min, T max, const std::string &name)

Check that the elements of the vector are in the range.

Parameters:
  • val – the vector to check

  • min – the minimum for this value

  • max – the maximum for this value

  • name – the name of the parameter

Throws:

std::runtime_error – value it is out of bounds