Return the maximum of the given values.
Synopsis
Declared in <folly/ConstexprMath.h>
template<
typename T,
typename... Ts>
constexpr
T
constexpr_max(
T a,
Ts... ts);
Description
Prefer using operator< for ordering. When two values are equivalent, the later argument is returned to make sorting stable. See http://stepanovpapers.com/notes.pdf for details.
Return Value
The maximum value among the arguments.
Parameters
Name |
Description |
a |
The first value to compare. |
ts |
The remaining values to compare. |
Created with MrDocs