]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/array.hh
2003 -> 2004
[lilypond.git] / flower / include / array.hh
index 15cacd63691c56a8a43917351d761443255f2cbf..5d3cd7dd3075828b2c0d9de3a1234578ea59e866 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  (c)  1995--2003 Han-Wen Nienhuys
+  (c) 1995--2004 Han-Wen Nienhuys
 
   Distributed under GNU GPL  
 */
@@ -243,6 +243,17 @@ public:
   void reverse ();
 };
 
+template<class T>
+int default_compare (T const&a , T const&b)
+{
+  if (a < b)
+    return -1;
+  else if (a > b)
+    return 1;
+  else
+    return 0;
+}
+
 #include "array.icc"
 
 #endif