PRODUCT : Borland C++ NUMBER : 1709 VERSION : 3.X OS : All DATE : October 25, 1993 PAGE : 1/1 TITLE : Decrement operators for BIDS doubly linked lists Pre and post-decrement operators for BIDS doubly-linked lists The pre- and post-decrement operators for the doubly-linked list class are NOT implemented in standard container class library. To implement these operators do the following: (a) In DLISTIMP.H search for "operator int()" and change: return cur != &(list->tail); to return (cur != &(list->tail) && cur != &(list->head)); (b) In DLISTIMP.H search for "restart" and insert just above the restart() method the following: T operator --(int) { BI_DoubleListElement _FAR *temp = cur; cur = cur->prev; return temp->data; } T operator --() { cur = cur->prev; return cur->data; } DISCLAIMER: You have the right to use this technical information subject to the terms of the No-Nonsense License Statement that you received with the Borland product to which this information pertains.