Pass InCheck as template parameter of qsearch()