Namespaces
Variants
Views
Actions

std::valarray::max

From cppreference.com
< cpp‎ | numeric‎ | valarray
Revision as of 15:06, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
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.

Contents

Parameters

(none)

Return value

The maximum of the elements.

Example

See also

Template:cpp/numeric/valarray/dcl list min