2 tuple.hh -- declare Tuple
4 source file of the GNU LilyPond music typesetter
6 (c) 2006--2007 Han-Wen Nienhuys <hanwen@lilypond.org>
13 template<class T
, int N
>
23 for (int i
= 0; i
< N
; i
++)
29 struct Tuple2
: public Tuple
<K
, 2>
38 Tuple
<K
,2> *p(this); // ugr.
46 template<class T
, int N
>
48 operator<(Tuple
<T
, N
> const &t1
,
49 Tuple
<T
, N
> const &t2
)
51 for (int i
= 0; i
< N
; i
++)
53 if (t1
.t_array
[i
] > t2
.t_array
[i
])
55 if (t1
.t_array
[i
] < t2
.t_array
[i
])