Obsolete Members for iterator

以下成員源於類 iterator 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) iterator operator+ (int j ) const
(obsolete) iterator & operator+= (int j )
(obsolete) iterator operator- (int j ) const
(obsolete) iterator & operator-- ()
(obsolete) iterator operator-- ( int )
(obsolete) iterator & operator-= (int j )

成員函數文檔編製

iterator iterator:: operator+ ( int j ) const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

This operator is deprecated in order to align with std::unordered_map functionality.

Returns an iterator to the item at j positions forward from this iterator. (If j is negative, the iterator goes backward.)

This operation can be slow for large j 值。

另請參閱 operator- ().

iterator &iterator:: operator+= ( int j )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

This operator is deprecated in order to align with std::unordered_map functionality.

推進迭代器 j items. (If j is negative, the iterator goes backward.)

另請參閱 operator-= () 和 operator+ ().

iterator iterator:: operator- ( int j ) const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

This operator is deprecated in order to align with std::unordered_map functionality.

Returns an iterator to the item at j positions backward from this iterator. (If j is negative, the iterator goes forward.)

This operation can be slow for large j 值。

另請參閱 operator+ ().

iterator &iterator:: operator-- ()

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

This operator is deprecated in order to align with std::unordered_map functionality.

The prefix -- operator ( --i ) makes the preceding item current and returns an iterator pointing to the new current item.

Calling this function on QHash::begin () leads to undefined results.

另請參閱 operator++ ().

iterator iterator:: operator-- ( int )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

This operator is deprecated in order to align with std::unordered_map functionality.

這是重載函數。

The postfix -- operator ( i-- ) makes the preceding item current and returns an iterator pointing to the previously current item.

iterator &iterator:: operator-= ( int j )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

This operator is deprecated in order to align with std::unordered_map functionality.

Makes the iterator go back by j items. (If j is negative, the iterator goes forward.)

另請參閱 operator+= () 和 operator- ().