]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/array.hh
* lily/melisma-engraver.cc (try_music): use melisma_busy()
[lilypond.git] / flower / include / array.hh
index 209feaa95a4e079d36b4e44c3b2332bd698b4eef..704e964ef755a3b2ed1826a78fb2b65b9c8af87d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  (c) Han-Wen Nienhuys 1995,96,97
+  (c)  1995--2003 Han-Wen Nienhuys
 
   Distributed under GNU GPL  
 */
@@ -183,8 +183,6 @@ public:
     {
       return (*this)[size_-j-1];
     }
-
-
   
   T& boundary (int dir, int idx)
     {
@@ -245,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