next up previous contents
Next: Shape restrictions: Up: Constructor Previous: Value restrictions:

Type restrictions:

T should be a POD type. Conventional binary comparision operators, > and <, must be defined for objects of type T, and a function mostneg must be overloaded with the entry point

  void mostneg(T* res) ;

which sets *res to the smallest allowed value of type T. The Adlib header files define mostneg for all the standard arithmetic types of C++, so these types satisfy all the requirements for T.



Guansong Zhang
Fri Oct 9 12:29:23 EDT 1998