ConstReverseRandomAccessIterator<TValue>.valid 方法

定义

确定迭代器是否有效并可安全用于遍历基础容器。Determines whether the iterator is valid and can be safely used to traverse the underlying container.

public:
 virtual bool valid();
public virtual bool valid ();
abstract member valid : unit -> bool
override this.valid : unit -> bool
Public Overridable Function valid () As Boolean

返回

Boolean

如果迭代器有效并可安全使用,则为 true;否则为 falsetrue if the iterator is valid and safe to use; otherwise, false.

适用于