fmt::max_of

Returns the larger of a and b.

Synopsis

Declared in <fmt/base.h>

template<typename T>
constexpr
T
max_of(
    T a,
    T b);

Return Value

a if it is greater than b, otherwise b.

Parameters

NameDescription
aThe first value to compare.
bThe second value to compare.