ΒΆtemplate <class T>
constexpr T max(T a, T b) noexcept

Description

Compares and returns the maximum of two values. Returns the second argument if the comparison determines them to be equal. By default this receives and returns objects by value. To receive and return references, specify the type parameter, such as: `sus::cmp::max <i32 & >(a, b)`. Note that if either input is a temporary object this can return a reference to an object past its lifetime.

Declared at: sus/cmp/ord.h:223

Templates

T

Parameters

T a
T b