Algorithm: Sign

Functions

template<typename T >
int sign (const T x)
 This does what you think it does. The number type must be less than and greater than comparable.

Detailed Description


Function Documentation

template<typename T >
int sign ( const T  x  )  [inline]

This does what you think it does. The number type must be less than and greater than comparable.

Parameters:
x is a number.
Returns:
1, 0 or -1 if x is positive, zero or negative.
Generated on Thu Jun 30 02:14:51 2016 for Algorithms and Data Structures Package by  doxygen 1.6.3