
//
// cf.h - inline element comparison functions in C++
//
inline int cf(int i, int j)
    {
    return i - j;
    }

inline int cf(double d, double e)
    {
    return d < e ? -1 : d == e ? 0 : 1;
    }

inline int cf(const char *s, const char *t)
    {
    return strcmp(s, t);
    }

