[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppMax
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppMax
(C++) std::max
Function that returns the higher of the two arguments. The reverse is done by std::min. Can be found the STL header file algorithm.h.int main() { const int small = 5; const int big = 10; assert(std::min(small,big)==small); assert(std::max(small,big)==big); }
- include <algorith>
- include <cassert>
Links
Topic links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
