Template Function iox::algorithm::max(const T&, const T&, const Targs&…)

Function Documentation

template<typename T, typename ...Targs>
constexpr T iox::algorithm::max(const T &left, const T &right, const Targs&... args) noexcept

Returns the maximum gained with operator<() of an arbitrary amount of variables of the same type.

Parameters:
  • T – type which implements operator<()

  • left[in] value which should be compared

  • right[in] value which should be compared

  • args...[in] an arbitrary amount of values

Returns:

returns the maximum value of the set {left, right, args…}