3#ifndef pRC_CORE_BASIC_FUNCTIONS_MAX_H
4#define pRC_CORE_BASIC_FUNCTIONS_MAX_H
13 static inline constexpr X max(
X &&a)
18 template<
class XA,
class XB, If<IsInvocable<Greater, XA, XB>> = 0>
19 static inline constexpr auto max(
XA &&a,
XB &&b)
21 return where(a > b, forward<XA>(a), forward<XB>(b));
24 template<
class XA,
class XB,
class...
Xs,
30 return max(
max(forward<XA>(a), forward<XB>(b)), forward<Xs>(
args)...);
Definition cholesky.hpp:18
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
static constexpr X max(X &&a)
Definition max.hpp:13