diff options
Diffstat (limited to '')
-rw-r--r-- | src/list.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -668,6 +668,18 @@ namespace Bu | |||
668 | } | 668 | } |
669 | 669 | ||
670 | /** | 670 | /** |
671 | * Erase an item from the list. | ||
672 | *@param i (iterator) The item to erase. | ||
673 | */ | ||
674 | MyType &erase( const_iterator i ) | ||
675 | { | ||
676 | _hardCopy(); | ||
677 | core->erase( i.pLink ); | ||
678 | |||
679 | return *this; | ||
680 | } | ||
681 | |||
682 | /** | ||
671 | * Erase an item from the list if you already know the item. | 683 | * Erase an item from the list if you already know the item. |
672 | *@param v The item to find and erase. | 684 | *@param v The item to find and erase. |
673 | */ | 685 | */ |