Obsolete Members for QMultiMap

QMultiMap 的以下成员已被弃用。提供这些成员是为了保持旧源代码的正常运行。我们强烈建议不要在新代码中使用它们。

公共函数

(deprecated) void insert(const QMultiMap<Key, T> &map)
(deprecated) void insert(QMultiMap<Key, T> &&map)
(deprecated) QMultiMap<Key, T>::iterator insertMulti(const Key &key, const T &value)
(deprecated) QMultiMap<Key, T>::iterator insertMulti(QMultiMap<Key, T>::const_iterator pos, const Key &key, const T &value)
(deprecated) std::multimap<Key, T> toStdMap() const

成员函数文档

[deprecated] void QMultiMap::insert(const QMultiMap<Key, T> &map)

该函数已被弃用。我们强烈建议不要在新代码中使用它。

请使用unite() 代替。

map 中的所有项目插入此地图。

[deprecated] void QMultiMap::insert(QMultiMap<Key, T> &&map)

该函数已被弃用。我们强烈建议不要在新代码中使用它。

请使用unite() 代替。

这是一个重载函数。

map 中的所有项目移入此地图。

如果map 是共享的,则项目将被复制。

[deprecated] QMultiMap<Key, T>::iterator QMultiMap::insertMulti(const Key &key, const T &value)

该函数已被弃用。我们强烈建议不要在新代码中使用它。

请使用insert() 代替。

插入一个键值为key 、值为value 的新项目,并返回一个指向新项目的迭代器。

[deprecated] QMultiMap<Key, T>::iterator QMultiMap::insertMulti(QMultiMap<Key, T>::const_iterator pos, const Key &key, const T &value)

该函数已被弃用。我们强烈建议不要在新代码中使用它。

请使用insert() 代替。

这是一个重载函数。

插入一个新项目,其键为key ,值为value ,并带有pos 提示,建议在何处插入。

[deprecated] std::multimap<Key, T> QMultiMap::toStdMap() const

该函数已被弃用。我们强烈建议不要在新代码中使用它。

请使用toStdMultiMap() 代替。

返回等同于此QMultiMap 的 STL 多映射。

© 2025 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.