]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/minmax.tcc
*** empty log message ***
[lilypond.git] / lily / include / minmax.tcc
1
2 /*   
3   minmax.cc --  implement minmax ()
4   
5   source file of the GNU LilyPond music typesetter
6   
7   (c) 1997--2005 Han-Wen Nienhuys <hanwen@stack.nl>
8   
9  */
10
11 template<class T>
12 minmax (Direction d, T t1, T t2)
13 {
14   if (d > 0) return t1 >? t2;
15   else return t1 <? t2;
16 }
17