Template Function ripple::max_element¶
Function Documentation¶
-
template<typename
T, typename ...Ts>
constexpr decltype(auto)ripple::max_element(T &&first, Ts&&... rest) noexcept¶ Computes the max element from a variadic number of elements.
- Note
This can be used at compile time to compute the max of a variadic pack.
- Return
The max of the pack.
- Parameters
first: The first element in the pack.rest: The rest of the elements in the pack.
- Template Parameters
T: The type of the first element.Ts: The types of the rest of the elements.