Obsolete Members for QMultiMap

以下成员源于类 QMultiMap 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

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

成员函数文档编制

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

This function is deprecated. We strongly advise against using it in new code.

使用 unite () 代替。

插入所有项在 map 进此映射。

该函数在 Qt 5.15 引入。

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

This function is deprecated. We strongly advise against using it in new code.

使用 unite () 代替。

这是重载函数。

Moves all the items from map 进此映射。

map is shared, then the items will be copied instead.

该函数在 Qt 5.15 引入。

QMultiMap::iterator QMultiMap:: insertMulti (const Key & key , const T & value )

This function is deprecated. We strongly advise against using it in new code.

使用 insert () 代替。

Inserts a new item with the key key and a value of value , and returns an iterator pointing to the new item.

QMultiMap::iterator QMultiMap:: insertMulti ( QMultiMap::const_iterator pos , const Key & key , const T & value )

This function is deprecated. We strongly advise against using it in new code.

使用 insert () 代替。

这是重载函数。

Inserts a new item with the key key and value value and with hint pos suggesting where to do the insert.

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

This function is deprecated. We strongly advise against using it in new code.

使用 toStdMultiMap () 代替。

Returns an STL multi map equivalent to this QMultiMap .