Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ min

#include <iostream>

template <class T> const T& min(const T& a, const T& b)
{
	return a < b ? a : b;
}

int main()
{
	std::cout << min(1, 2) << std::endl;
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #min
ADD COMMENT
Topic
Name
1+9 =