Template Function hardware_interface::stoui_generic

Function Documentation

template<typename T>
T hardware_interface::stoui_generic(const std::string &s)

Overflow-safe conversion from string to uint32_t.

Throws:
  • std::out_of_range – if the converted value would fall out of the range of int32_t

  • std::invalid_argument – if no conversion could be performed