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.

Advances the iterator by 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- ().