#include <QtCore/qvector.h> #ifndef QVECTOR_H template < typename T > class QVector{ /* Some contents are skipped to improve readability */ public: int indexOf(T const & t, int from = 0) const /* ... */ }; #endif // QVECTOR_H