#include <QtCore/qlinkedlist.h> #ifndef QLINKEDLIST_H template < typename T > class QLinkedList{ /* Some contents are skipped to improve readability */ public: typename QLinkedList::iterator erase(typename QLinkedList::iterator afirst, typename QLinkedList::iterator alast); /* ... */ }; #endif // QLINKEDLIST_H