There are several errors in your code:
template <template <typename> class Cont, typename Elem>
// ^^^^^ ^^^^^^^^^^^^^
void my_func(const Cont<Elem>& cont)
// ^^^^^^
{
qDebug() << cont.isEmpty();
Elem el = cont.first();
qDebug() << el;
}