Obsolete Members for QMutableSetIterator

The following members of class QMutableSetIterator are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

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

Member Function Documentation

bool QMutableSetIterator::findNext(const T &value)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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

Searches for 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.

See also findPrevious().

bool QMutableSetIterator::hasPrevious() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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

Returns 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.

See also hasNext() and previous().

const T &QMutableSetIterator::peekPrevious() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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.

See also hasPrevious(), previous(), and peekNext().

const T &QMutableSetIterator::previous()

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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.

See also hasPrevious(), peekPrevious(), and next().