This commit is contained in:
邹晓航
2015-02-09 12:50:44 +08:00
parent 9a3cbbfa17
commit 17c9aa4a39

View File

@@ -41,7 +41,7 @@ namespace TinySTL{
listIterator& operator --();
listIterator operator --(int);
T& operator *(){ return p->data; }
T* operator &(){ return &(operator*()); }
T* operator ->(){ return &(operator*()); }
template<class T>
friend bool operator ==(const listIterator<T>& lhs, const listIterator<T>& rhs);