repo.or.cz
/
lilypond.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
lilypond-1.3.16
[lilypond.git]
/
lily
/
include
/
minmax.tcc
blob
5f3fa895e78f5a327ae9dee7349d9a459a50873c
1
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
*/
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