summaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/list.h b/src/list.h
index 9574bca..785a95c 100644
--- a/src/list.h
+++ b/src/list.h
@@ -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 */