folly::constexpr_min

Return the minimum of the given values.

Synopsis

Declared in <folly/ConstexprMath.h>

template<
    typename T,
    typename... Ts>
constexpr
T
constexpr_min(
    T a,
    Ts... ts);

Description

When two values are equivalent, the earlier argument is returned to make sorting stable.

Return Value

The minimum value among the arguments.

Parameters

NameDescription
aThe first value to compare.
tsThe remaining values to compare.