// Function-object to compare two objects. // This template needs operator<() for objects of type T, but it is possible to // specialize it for any given type so that this template is not used. // Author: U.Breymann / H.P.Weber // Date: 05.05.05 #ifndef COMPARE_H #define COMPARE_H template class Compare { public: bool operator()( const T& a, const T& b ) const { return a < b; } }; #endif