ConstContainerRandomAccessIterator<TValue>.Subtraction Operator

Definition

Decrements the iterator by the given number of elements, or determines the difference between two iterators.

Overloads

Subtraction(IRandomAccessIterator<TValue>)

Determines the difference between two iterators.

Subtraction(ConstContainerRandomAccessIterator<TValue>, Int32)

Decrements the iterator by the given number of elements. The integer parameter is specified on the right side of the addition operator.

Subtraction(IRandomAccessIterator<TValue>)

Determines the difference between two iterators.

C#
public int operator -(Microsoft.VisualC.StlClr.Generic.IRandomAccessIterator<TValue> _Right);

Parameters

Returns

The difference, in number of elements, between the two iterators.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

Subtraction(ConstContainerRandomAccessIterator<TValue>, Int32)

Decrements the iterator by the given number of elements. The integer parameter is specified on the right side of the addition operator.

C#
public void operator -(ref Microsoft.VisualC.StlClr.Generic.ConstContainerRandomAccessIterator<TValue> unnamedParam1, int _Right);

Parameters

unnamedParam1
ConstContainerRandomAccessIterator<TValue>

The current iterator.

_Right
Int32

The number of elements to decrement.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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