Import backup from 2004-06-12
This commit is contained in:
1 parent
9a8d2c29cb
commit
c76725eac3
10 files changed
+224
-185
No files matched your search
@@ -51,15 +51,13 @@ public:
|
||||
{
|
||||
return theNode->data;
|
||||
}
|
||||
Element & operator++() //prefix
|
||||
void operator++() //prefix
|
||||
{
|
||||
theNode = theNode->next;
|
||||
return theNode->data;
|
||||
}
|
||||
Element & operator++(int dum) //postfix
|
||||
void operator++(int dum) //postfix
|
||||
{
|
||||
theNode = theNode->next;
|
||||
return theNode->prev->data;
|
||||
}
|
||||
bool operator==(const iterator & second) const
|
||||
{ return theNode == second.theNode; }
|
||||
@@ -84,15 +82,13 @@ public:
|
||||
{
|
||||
return theNode->data;
|
||||
}
|
||||
Element & operator++() //prefix
|
||||
void operator++() //prefix
|
||||
{
|
||||
theNode = theNode->prev;
|
||||
return theNode->data;
|
||||
}
|
||||
Element & operator++(int dum) //postfix
|
||||
void operator++(int dum) //postfix
|
||||
{
|
||||
theNode = theNode->prev;
|
||||
return theNode->next->data;
|
||||
}
|
||||
bool operator==(const reverse_iterator & second) const
|
||||
{ return theNode == second.theNode; }
|
||||
|
||||
Reference in new issue
Block a user