IVector<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 specified positions in the container.
Overloads
erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>) |
Removes the single element of the controlled sequence that is pointed to by _Where. |
erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>) |
Removes the elements of the controlled sequence in the range [ |
Remarks
For more information, see vector::erase (STL/CLR).
erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>)
Removes the single element of the controlled sequence that is pointed to by _Where.
public:
void ^ erase(Microsoft::VisualC::StlClr::Generic::ContainerRandomAccessIterator<TValue> ^ % unnamedParam1, Microsoft::VisualC::StlClr::Generic::ContainerRandomAccessIterator<TValue> ^ _Where);
public void erase (ref Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> unnamedParam1, Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> _Where);
abstract member erase : ContainerRandomAccessIterator * Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<'Value> -> unit
Public Function erase (ByRef unnamedParam1 As ContainerRandomAccessIterator(Of TValue), _Where As ContainerRandomAccessIterator(Of TValue)) As Void
Parameters
- unnamedParam1
- ContainerRandomAccessIterator<TValue>
An iterator that designates the first element that remains beyond any removed elements, or end(ContainerRandomAccessIterator<TValue>) if no such element exists.
The position of the element to remove.
Remarks
For more information, see vector::erase (STL/CLR).
Applies to
erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>)
Removes the elements of the controlled sequence in the range [_First_iter
, _Last_iter
].
public:
void ^ erase(Microsoft::VisualC::StlClr::Generic::ContainerRandomAccessIterator<TValue> ^ % unnamedParam1, Microsoft::VisualC::StlClr::Generic::ContainerRandomAccessIterator<TValue> ^ _First_iter, Microsoft::VisualC::StlClr::Generic::ContainerRandomAccessIterator<TValue> ^ _Last_iter);
public void erase (ref Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> unnamedParam1, Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> _First_iter, Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> _Last_iter);
abstract member erase : ContainerRandomAccessIterator * Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<'Value> * Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<'Value> -> unit
Public Function erase (ByRef unnamedParam1 As ContainerRandomAccessIterator(Of TValue), _First_iter As ContainerRandomAccessIterator(Of TValue), _Last_iter As ContainerRandomAccessIterator(Of TValue)) As Void
Parameters
- unnamedParam1
- ContainerRandomAccessIterator<TValue>
An iterator that designates the first element that remains beyond any removed elements, or end(ContainerRandomAccessIterator<TValue>) if no such element exists.
- _First_iter
- ContainerRandomAccessIterator<TValue>
The beginning of the range of elements to erase.
- _Last_iter
- ContainerRandomAccessIterator<TValue>
The first position beyond the range of elements to erase.
Remarks
For more information, see vector::erase (STL/CLR).