Прочетете на английски Редактиране

Споделяне чрез


IVector<TValue>.erase Method

Definition

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 [_First_iter, _Last_iter].

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.

C#
public void erase(ref Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> unnamedParam1, Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue> _Where);

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.

_Where
ContainerRandomAccessIterator<TValue>

The position of the element to remove.

Remarks

For more information, see vector::erase (STL/CLR).

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>)

Removes the elements of the controlled sequence in the range [_First_iter, _Last_iter].

C#
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);

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).

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1