cmpfn.h| Function | |
| operatorCmp(v1, v2) | This template function is a generic function that compares two values using the built-in == and < operators. |
int operatorCmp(Type v1, Type v2);
== and <
operators. It is supplied as a convenience for those situations
where a comparison function is required, and the type has a
built-in ordering that you would like to use.
Usage:
int sign = operatorCmp(v1, v2);