// Вот так люди страдаю без фишек С++11 без std::tuple
template < typename A,
typename B,
typename C >
QVector<Trinity<A,B,C> >
zip(const std::vector<A> & a,
const std::vector<B> & b,
const std::vector<B> & c)
{
QVector<QPair<A, B> > result;
size_t m = min(a.size(), b.size());
m = min(c.size(), m);
for(size_t i = 0; i < m; ++i)
{
Trinity three;
three.a = a[i]; three.b = b[i]; three.c = c[i];
result.append(three);
}
return result;
}