/* CSE 333 Su12 lecture 12 demo: compare_problem/compare.cc */ /* Gribble/Perkins */ // Implementation of comp function - but how does this get // expanded in client code at compile time? #include "compare.h" template int comp(const T& a, const T& b) { if (a < b) return -1; if (b < a) return 1; return 0; }