#include <QtCore/qvector.h> #ifndef QVECTOR_H template < typename T > class QVector{ /* Some contents are skipped to improve readability */ private: union /*anonymous*/{ struct QVectorData* p; class QVectorTypedData < T >* d; }; /* ... */ }; #endif // QVECTOR_H