Template Function TRAP::Math::Max(genType, genType)#

Function Documentation#

template<typename genType>
constexpr genType TRAP::Math::Max(genType x, genType y)#

Retrieve the maximum value of x and y.

Parameters:
  • x – Specify the first value to compare.

  • y – Specify the second value to compare.

Returns:

y if x < y; otherwise it returns x.