RAD Studio
ContentsIndex
PreviousUpNext
min

Header File 

stdlib.h  

Category 

C++ Prototyped Routines 

Prototype 

(type) min(a, b); /* macro version */ 

template <class T> T min( T t1, T t2 );// C++ only 

Description 

Returns the smaller of two values. 

The C macro and the C++ template function compare two values and return the smaller of the two. Both arguments and the routine declaration must be of the same type. 

Return Value 

min returns the smaller of two values.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!