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

Function Documentation

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

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

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

  • left[in] value which should be compared

  • right[in] value which should be compared

Returns:

returns the minimum of the set {left, right}