IRandomAccessIterator<TValue>.less_than(IRandomAccessIterator<TValue>) 方法

定义

确定容器中当前迭代器指向的元素是否位于给定迭代器指向的元素之前。Determines whether the current iterator is pointing to an element in the container that precedes the element that the given iterator points to.

public:
 bool less_than(Microsoft::VisualC::StlClr::Generic::IRandomAccessIterator<TValue> ^ _Right);
public bool less_than (Microsoft.VisualC.StlClr.Generic.IRandomAccessIterator<TValue> _Right);
abstract member less_than : Microsoft.VisualC.StlClr.Generic.IRandomAccessIterator<'Value> -> bool
Public Function less_than (_Right As IRandomAccessIterator(Of TValue)) As Boolean

参数

_Right
IRandomAccessIterator<TValue>

一个有效迭代器,与当前迭代器指向同一个容器。A valid iterator that points to the same container as the current iterator.

返回

如果当前迭代器指向的元素位于 _Right 指向的元素之前,则为 true;否则为 falsetrue if the current iterator is pointing to an element that comes before the element that _Right is pointing to; otherwise, false.

适用于