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

Name

Description

a

The first value to compare.

b

The second value to compare.

Created with MrDocs