std::valarray<T>::max (3) - Linux Manuals
std::valarray<T>::max: std::valarray<T>::max
NAME
std::valarray<T>::max - std::valarray<T>::max
Synopsis
T max() const;
Computes the maximum value of the elements.
If there are no elements, the behavior is undefined.
The function can be used only if operator< is defined for type T.
Parameters
(none)
Return value
The maximum of the elements.
Example
// Run this code
Output:
See also
min (public member function)