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

Function Documentation

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

Returns the maximum gained with operator<() of an arbitrary amount of variables of the same type. Helper function which takes two arguments and returns the greater one.

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

  • left[in] value which should be compared

  • right[in] value which should be compared

Returns:

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