Obsolete Members for QMutableHashIterator

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

公共函数

(obsolete) bool findPrevious (const T & value )
(obsolete) bool hasPrevious () const
(obsolete) QMutableHashIterator::Item peekPrevious () const
(obsolete) QMutableHashIterator::Item previous ()

成员函数文档编制

bool QMutableHashIterator:: findPrevious (const T & value )

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

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

搜索 value starting from the current iterator position backward. Returns true if a (key, value) pair with value value is found; otherwise returns false .

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

另请参阅 findNext ().

bool QMutableHashIterator:: 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 ().

QMutableHashIterator::Item QMutableHashIterator:: peekPrevious () const

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

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

Returns the previous item without moving the iterator.

调用 key () on the return value to obtain the item's key, and value () to obtain the value.

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

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

QMutableHashIterator::Item QMutableHashIterator:: previous ()

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

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

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

调用 key () on the return value to obtain the item's key, and value () to obtain the value.

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

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