lilypond-1.3.16
[lilypond.git] / lily / include / minmax.tcc
blob5f3fa895e78f5a327ae9dee7349d9a459a50873c
2 /*   
3   minmax.cc --  implement minmax()
4   
5   source file of the GNU LilyPond music typesetter
6   
7   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
8   
9  */
11 template<class T>
12 minmax (Direction d, T t1, T t2)
14   if (d > 0) return t1 >? t2;
15   else return t1 <? t2;