File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -1011,6 +1011,29 @@ namespace etl
1011
1011
}
1012
1012
}
1013
1013
1014
+ // *************************************************************************
1015
+ // Removes the element specified by pointer.
1016
+ // *************************************************************************
1017
+ void remove (const_pointer element)
1018
+ {
1019
+ iterator i_item = begin ();
1020
+ iterator i_last_item = before_begin ();
1021
+
1022
+ while (i_item != end ())
1023
+ {
1024
+ if (&i_item == element)
1025
+ {
1026
+ i_item = erase_after (i_last_item);
1027
+ return ;
1028
+ }
1029
+ else
1030
+ {
1031
+ ++i_item;
1032
+ ++i_last_item;
1033
+ }
1034
+ }
1035
+ }
1036
+
1014
1037
// *************************************************************************
1015
1038
// / Removes according to a predicate.
1016
1039
// *************************************************************************
You can’t perform that action at this time.
0 commit comments