[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppMin
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppMin
(C++) std::min
Function that returns the lower of the two arguments. The reverse is done by std::max. 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
Code links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
