@@ -108,31 +108,31 @@ class TList {
108108 // ---------------------------------------------------------------------------------------------
109109 class Iterator {
110110 public:
111- // / The default class constructor.
111+ // / The default class constructor.
112112 Iterator ();
113- // / Constructor with a node instance.
113+ // / Constructor with a node instance.
114114 Iterator (Node *pNode);
115- // / The copy constructor.
115+ // / The copy constructor.
116116 Iterator (const Iterator &rOther);
117- // / The destructor, non virtual.
118- ~Iterator ();
119- // / The assignment operator.
117+ // / The destructor, non virtual.
118+ ~Iterator () = default ;
119+ // / The assignment operator.
120120 Iterator &operator =(const Iterator &rOther);
121- // / The compare operator.
121+ // / The compare operator.
122122 bool operator ==(const Iterator &rOther) const ;
123- // / The not equal operator.
123+ // / The not equal operator.
124124 bool operator !=(const Iterator &rOther) const ;
125- // / The post increment operator.
125+ // / The post increment operator.
126126 const Iterator &operator ++(int );
127- // / The pre-increment operator.
127+ // / The pre-increment operator.
128128 Iterator &operator ++();
129- // / The post decrement operator.
129+ // / The post decrement operator.
130130 const Iterator &operator --(int );
131- // / The pre-decrement operator.
131+ // / The pre-decrement operator.
132132 Iterator &operator --();
133- // / The -> operator.
133+ // / The -> operator.
134134 T *operator ->() const ;
135- // / The dereference operator.
135+ // / The dereference operator.
136136 T &operator *() const ;
137137
138138 private:
@@ -392,12 +392,7 @@ inline TList<T, TAlloc>::Iterator::Iterator(Node *node) :
392392
393393template <class T , class TAlloc >
394394inline TList<T, TAlloc>::Iterator::Iterator(const Iterator &rhs) :
395- m_pNode (rhs.m_pNode) {
396- // empty
397- }
398-
399- template <class T , class TAlloc >
400- inline TList<T, TAlloc>::Iterator::~Iterator () {
395+ mNode (rhs.m_pNode) {
401396 // empty
402397}
403398
0 commit comments