**fig3_36.txt** /* 1*/ // Advance the current position. /* 2*/ template /* 3*/ inline const List & /* 4*/ List:: /* 5*/ operator ++( ) /* 6*/ { /* 7*/ if( Current_Pos ) /* 8*/ Current_Pos = C.Cursor_Space[ Current_Pos ].Next; /* 9*/ return *this; /*10*/ } /* 1*/ // Retrieve element in the current position. /* 2*/ // Return value is undefined if current position is 0. /* 3*/ template /* 4*/ inline const Element_Type & /* 5*/ List:: /* 6*/ operator ( ) ( ) const /* 7*/ { /* 8*/ if( Current_Pos != 0 ) /* 9*/ return C.Cursor_Space[ Current_Pos ].Element; /*10*/ else /*11*/ return C.Cursor_Space[ List_Head ].Element; /*12*/ } /* 1*/ // Check if current position is not 0. /* 2*/ template /* 3*/ inline int /* 4*/ List:: /* 5*/ operator ! ( ) const /* 6*/ { /* 7*/ return Current_Pos; /* 8*/ }