IList<TValue>.erase Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes elements from the container.
Overloads
erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) |
Removes the single element of the controlled sequence pointed to by the given iterator. |
erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) |
Removes the elements of the controlled sequence in the range [_First_iter, _Last_iter). |
Remarks
For more information, see list::erase (STL/CLR).
erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)
Removes the single element of the controlled sequence pointed to by the given iterator.
public:
void ^ erase(Microsoft::VisualC::StlClr::Generic::ContainerBidirectionalIterator<TValue> ^ % unnamedParam1, Microsoft::VisualC::StlClr::Generic::ContainerBidirectionalIterator<TValue> ^ _Where);
public void erase (ref Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> unnamedParam1, Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> _Where);
abstract member erase : ContainerBidirectionalIterator * Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<'Value> -> unit
Public Function erase (ByRef unnamedParam1 As ContainerBidirectionalIterator(Of TValue), _Where As ContainerBidirectionalIterator(Of TValue)) As Void
Parameters
- unnamedParam1
- ContainerBidirectionalIterator<TValue>
An iterator that designates the first element remaining beyond any elements removed, or end(ContainerBidirectionalIterator<TValue>) if no such element exists.
The position of the element to erase.
Remarks
For more information, see list::erase (STL/CLR).
Applies to
erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)
Removes the elements of the controlled sequence in the range [_First_iter, _Last_iter).
public:
void ^ erase(Microsoft::VisualC::StlClr::Generic::ContainerBidirectionalIterator<TValue> ^ % unnamedParam1, Microsoft::VisualC::StlClr::Generic::ContainerBidirectionalIterator<TValue> ^ _First_iter, Microsoft::VisualC::StlClr::Generic::ContainerBidirectionalIterator<TValue> ^ _Last_iter);
public void erase (ref Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> unnamedParam1, Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> _First_iter, Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<TValue> _Last_iter);
abstract member erase : ContainerBidirectionalIterator * Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<'Value> * Microsoft.VisualC.StlClr.Generic.ContainerBidirectionalIterator<'Value> -> unit
Public Function erase (ByRef unnamedParam1 As ContainerBidirectionalIterator(Of TValue), _First_iter As ContainerBidirectionalIterator(Of TValue), _Last_iter As ContainerBidirectionalIterator(Of TValue)) As Void
Parameters
- unnamedParam1
- ContainerBidirectionalIterator<TValue>
An iterator that designates the first element remaining beyond any elements removed, or end(ContainerBidirectionalIterator<TValue>) if no such element exists.
- _First_iter
- ContainerBidirectionalIterator<TValue>
The beginning position of the range of elements to erase.
- _Last_iter
- ContainerBidirectionalIterator<TValue>
The first position beyond the range of elements to erase.
Remarks
For more information, see list::erase (STL/CLR).
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru