3#ifndef pRC_CORE_BASIC_FUNCTIONS_MIN_H
4#define pRC_CORE_BASIC_FUNCTIONS_MIN_H
13 static inline constexpr X min(
X &&a)
18 template<
class XA,
class XB, If<IsInvocable<Less, XA, XB>> = 0>
19 static inline constexpr auto min(
XA &&a,
XB &&b)
21 return where(a < b, forward<XA>(a), forward<XB>(b));
29 return min(
min(forward<XA>(a), forward<XB>(b)), forward<Xs>(
args)...);
Definition cholesky.hpp:18
static constexpr X min(X &&a)
Definition min.hpp:13
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
std::enable_if_t< B{}, int > If
Definition type_traits.hpp:68
static constexpr T where(TE const e, T &&a, T &&b)
Definition where.hpp:12
std::is_invocable< F, Args... > IsInvocable
Definition type_traits.hpp:134