fmt::min_of

Returns the smaller of a and b.

Synopsis

Declared in <fmt/base.h>

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

Return Value

a if it is less than b, otherwise b.

Parameters

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