Obsolete Members for QMutableSetIterator

以下成员源于类 QMutableSetIterator 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) bool findNext (const T & value )
(obsolete) bool hasPrevious () const
(obsolete) const T & peekPrevious () const
(obsolete) const T & previous ()

成员函数文档编制

bool QMutableSetIterator:: findNext (const T & value )

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

Deprecated in order to align with std::unordered_set functionality.

搜索 value starting from the current iterator position forward. Returns true if value is found; otherwise returns false .

After the call, if value was found, the iterator is positioned just after the matching item; otherwise, the iterator is positioned at the back of the container.

另请参阅 findPrevious ().

bool QMutableSetIterator:: hasPrevious () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

Deprecated in order to align with std::unordered_set functionality.

返回 true if there is at least one item behind the iterator, i.e. the iterator is not at the front of the container; otherwise returns false .

另请参阅 hasNext () 和 previous ().

const T &QMutableSetIterator:: peekPrevious () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

Deprecated in order to align with std::unordered_set functionality.

Returns the previous item without moving the iterator.

Calling this function on an iterator located at the front of the container leads to undefined results.

另请参阅 hasPrevious (), previous (),和 peekNext ().

const T &QMutableSetIterator:: previous ()

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

Deprecated in order to align with std::unordered_set functionality.

Returns the previous item and moves the iterator back by one position.

Calling this function on an iterator located at the front of the container leads to undefined results.

另请参阅 hasPrevious (), peekPrevious (),和 next ().