Unix VPS A - Starter B - Basic C - Preferred D - Commercial MPS - Dedicated Previous VPSs * Sign Up! *
Support Contact Us Online Help Handbooks Domain Status Man Pages
FAQ Virtual Servers Pricing Billing Technical
Network Facilities Connectivity Topology Map
Miscellaneous Server Agreement Year 2038 Credits
std::valarray::max - std::valarray::max
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.
(none)
The maximum of the elements.
// Run this code
#include <valarray> #include <iostream>
int main() { std::valarray<double> a{1, 2, 3, 4, 5, 6, 7, 8}; std::cout << "Maximum value : " << a.max() << "\n"; }
Maximum value : 8
min returns the smallest element (public member function)
Visit the GSP FreeBSD Man Page Interface.Output converted with ManDoc.