Obsolete Members for QMap::const_iterator

const_iterator クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードを動作させ続けるために提供されているものです。新しいコードでの使用は強く推奨しません。

パブリック関数

(deprecated in 6.2) QMap<Key, T>::const_iterator &operator+=(QMap<Key, T>::const_iterator::difference_type n)
(deprecated in 6.2) QMap<Key, T>::const_iterator &operator-=(QMap<Key, T>::const_iterator::difference_type n)

関連する非メンバー

(deprecated in 6.2) QMap<Key, T>::const_iterator operator+(QMap<Key, T>::const_iterator it, QMap<Key, T>::const_iterator::difference_type j)
(deprecated in 6.2) QMap<Key, T>::const_iterator operator+(QMap<Key, T>::const_iterator::difference_type j, QMap<Key, T>::const_iterator it)
(deprecated in 6.2) QMap<Key, T>::const_iterator operator-(QMap<Key, T>::const_iterator it, QMap<Key, T>::const_iterator::difference_type j)
(deprecated in 6.2) QMap<Key, T>::const_iterator operator-(QMap<Key, T>::const_iterator::difference_type j, QMap<Key, T>::const_iterator it)

メンバー関数のドキュメント

[deprecated in 6.2] QMap<Key, T>::const_iterator &const_iterator::operator+=(QMap<Key, T>::const_iterator::difference_type n)

[deprecated in 6.2] QMap<Key, T>::const_iterator &const_iterator::operator-=(QMap<Key, T>::const_iterator::difference_type n)

[deprecated in 6.2] QMap<Key, T>::const_iterator operator+(QMap<Key, T>::const_iterator it, QMap<Key, T>::const_iterator::difference_type j)

[deprecated in 6.2] QMap<Key, T>::const_iterator operator-(QMap<Key, T>::const_iterator it, QMap<Key, T>::const_iterator::difference_type j)

[deprecated in 6.2] QMap<Key, T>::const_iterator operator+(QMap<Key, T>::const_iterator::difference_type j, QMap<Key, T>::const_iterator it)

[deprecated in 6.2] QMap<Key, T>::const_iterator operator-(QMap<Key, T>::const_iterator::difference_type j, QMap<Key, T>::const_iterator it)

この関数はバージョン6.2以降、非推奨となっています。新しいコードでの使用は強く推奨しません。

代わりに、std::next 、std::prev 、またはstd::advance を使用してください。

イテレータをn位置分移動します。n の値が大きい場合、この操作は計算コストが高くなる可能性があります。QMap のイテレータはランダムアクセスに対応していません。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.